gas/
authorBob Wilson <bob.wilson@acm.org>
Fri, 30 Nov 2007 23:47:55 +0000 (23:47 +0000)
committerBob Wilson <bob.wilson@acm.org>
Fri, 30 Nov 2007 23:47:55 +0000 (23:47 +0000)
* config/tc-xtensa.h (md_allow_eh_opt): Define.
gas/testsuite/
* gas/elf/elf.exp: Disable ehopt test for Xtensa.

gas/ChangeLog
gas/config/tc-xtensa.h
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/elf.exp

index 1750ea36b7d446419c7874cd39b6fb6e8f3831d4..41879a3222d5e17b67a387751d2ae2bd95f58bb1 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-30  Bob Wilson  <bob.wilson@acm.org>
+       
+       * config/tc-xtensa.h (md_allow_eh_opt): Define.
+
 2007-11-29  Mark Shinwell  <shinwell@codesourcery.com>
 
        * config/tc-mips.c (mips_cpu_info_table): Add loongson2e
index d3ae0241ee36b6bf533a15b959a94567dcde801b..c9ae94d4f12512090b2924b5b3f160e447a9ff4b 100644 (file)
@@ -374,6 +374,10 @@ extern char *xtensa_section_rename (char *);
 #define md_relax_frag(segment, fragP, stretch) \
   xtensa_relax_frag (fragP, stretch, &stretched)
 
+/* Only allow call frame debug info optimization when linker relaxation is
+   not enabled as otherwise we could generate the DWARF directives without
+   the relocs necessary to patch them up.  */
+#define md_allow_eh_opt (linkrelax == 0)
 
 #define LOCAL_LABELS_FB 1
 #define WORKING_DOT_WORD 1
index 266c88dcc7169603c79f27b32a51fef2a36fa7d1..3f06e0eeda624269a4b2320bca22c2b8bd4319b8 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-30  Bob Wilson  <bob.wilson@acm.org>
+
+       * gas/elf/elf.exp: Disable ehopt test for Xtensa.
+
 2007-11-29  Mark Shinwell  <shinwell@codesourcery.com>
 
        * config/tc-mips.c (mips_cpu_info_table): Add loongson2e
index 07d2cb1a6947e2d8d7d0a6fc62dc75fce98c5f0c..2af7e38b3770e27b2f664e06d0f4a3258254b916 100644 (file)
@@ -74,9 +74,12 @@ if { ([istarget "*-*-*elf*"]
        }
     }
 
-    # 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 {    
+    # The MN10300 and Xtensa ports disable the assembler's call frame
+    # optimization because it interfers with link-time relaxation of
+    # function prologues.
+    if {![istarget "mn10300-*-*"]
+       && ![istarget "xtensa*-*-*"]
+       && ![istarget "am3*-*-*"]} then {    
       run_dump_test "ehopt0"
     }
     run_dump_test "group0a" 
This page took 0.03661 seconds and 4 git commands to generate.