From 3a303360aaa25cc639216d82b3c33b317937cb9d Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Thu, 1 Oct 2009 12:18:34 +0000 Subject: [PATCH] arm.c (arm_override_options): Turn off flag_dwarf2_cfi_asm for AAPCS variants. 2009-10-01 Ramana Radhakrishnan * config/arm/arm.c (arm_override_options): Turn off flag_dwarf2_cfi_asm for AAPCS variants. From-SVN: r152369 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19a52e324bf..99c5f138b46 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-10-01 Ramana Radhakrishnan + + * config/arm/arm.c (arm_override_options): Turn off + flag_dwarf2_cfi_asm for AAPCS variants. + 2009-10-01 Martin Jambor PR middle-end/12392 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index efc329b823b..cd5a0ed1403 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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--;) {