[PATCH]: Allow target control of eh optimization
Nick Clifton
nickc@redhat.com
Tue Nov 6 17:16:00 GMT 2007
Hi Guys,
I am applying the attached patch to implement a new target macro -
md_allow_eh_opt which can be used to disable the call frame
optimization code if the target so desires. This is needed by the
MN10300 port because its linker relaxation changes the size of
function prologues which means that some of the optimizations in
ehopt.c cannot be applied.
Cheers
Nick
gas/ChangeLog
2007-11-06 Nick Clifton <nickc@redhat.com>
* ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke
it to see if the optimizations should be applied.
* config/tc-mn10300.h (md_allow_eh_opt): Define. Only allow call
frame optimization if linker relaxation is not enabled.
gas/testsuite/ChangeLog
2007-11-06 Nick Clifton <nickc@redhat.com>
* gas/elf/elf.exp: Disable ehopt test for mn10300.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mn10300.eh-opt.patch
Type: text/x-patch
Size: 3298 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20071106/cfdc0cca/attachment.bin>
More information about the Binutils
mailing list