OSDN Git Service

2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
authorramana <ramana@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2009 12:18:34 +0000 (12:18 +0000)
committerramana <ramana@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2009 12:18:34 +0000 (12:18 +0000)
* config/arm/arm.c (arm_override_options): Turn off
flag_dwarf2_cfi_asm for AAPCS variants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152369 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index 19a52e3..99c5f13 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       * config/arm/arm.c (arm_override_options): Turn off
+       flag_dwarf2_cfi_asm for AAPCS variants.
+
 2009-10-01  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/12392
index efc329b..cd5a0ed 100644 (file)
@@ -1298,6 +1298,13 @@ arm_override_options (void)
   enum processor_type target_arch_cpu = arm_none;
   enum processor_type selected_cpu = arm_none;
 
+  /* Ideally we would want to use CFI directives to generate
+     debug info.  However this also creates the .eh_frame
+     section, so disable them until GAS can handle
+     this properly.  See PR40521. */
+  if (TARGET_AAPCS_BASED)
+    flag_dwarf2_cfi_asm = 0;
+
   /* Set up the flags based on the cpu/architecture selected by the user.  */
   for (i = ARRAY_SIZE (arm_select); i--;)
     {