Patch: Omit frame pointers on x86
Bryce McKinlay
mckinlay@redhat.com
Wed Jun 1 23:01:00 GMT 2005
Previously, stack traces on i386 required a frame pointer to be
available as a fallback mechansim when tracing the stack. The new stack
trace infrastructure uses DWARF2 unwind info exclusively, so frame
pointers are never required on systems that support DWARF2 unwind.
Omitting frame pointers frees up a register for general purpose use,
which should improve peformance and reduce code size slightly.
-fno-omit-frame-pointer is actually still the default on 32-bit x86, so
this patch will now explicitly specify -fomit-frame-pointer for that
platform, except on Windows. On 64-bit x86, no frame pointer is the
default, so we don't need to specify anything.
I'm checking this in to HEAD.
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-framepointer.patch
Type: text/x-patch
Size: 2427 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050601/7fb7de04/attachment.bin>
More information about the Java-patches
mailing list