aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-11-06 17:15:10 +0000
committerNick Clifton <nickc@redhat.com>2007-11-06 17:15:10 +0000
commit8c7504802aa101a9df8e799e1d1943ab7b5ff80b (patch)
tree304a13d2252064bcff551cb28d724bef16deffb1 /gas/testsuite
parent102890f04c44b64cf5cef4588267dd9f24086ac7 (diff)
downloadgdb-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/ChangeLog4
-rw-r--r--gas/testsuite/gas/elf/elf.exp7
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"