diff options
author | Nick Clifton <nickc@redhat.com> | 2007-11-06 17:15:10 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-11-06 17:15:10 +0000 |
commit | 8c7504802aa101a9df8e799e1d1943ab7b5ff80b (patch) | |
tree | 304a13d2252064bcff551cb28d724bef16deffb1 /gas/testsuite | |
parent | 102890f04c44b64cf5cef4588267dd9f24086ac7 (diff) | |
download | gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.zip gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.tar.gz gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.tar.bz2 |
* 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/elf/elf.exp: Disable ehopt test for mn10300.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index bbce8ca..fdb57bc 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-11-06 Nick Clifton <nickc@redhat.com> + + * gas/elf/elf.exp: Disable ehopt test for mn10300. + 2007-11-01 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.d: New. diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index c5e2921..28f8e51 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -73,7 +73,12 @@ if { ([istarget "*-*-*elf*"] set target_machine -armelf } } - run_dump_test "ehopt0" + + # The MN10300 port disables the assembler's call frame optimization + # because it interfers with link time relaxation of function prologues. + if (![istarget "mn10300-*-*"] && ![istarget "am3*-*-*"]} then { + run_dump_test "ehopt0" + } run_dump_test "group0a" run_dump_test "group0b" run_dump_test "group1a" |