aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-10-09 21:07:23 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-10-09 21:07:23 +0200
commit9c1e641ac128838ef78f1618a568ad4315a58e66 (patch)
tree84a231250fe924632058d91f25cd4cbe66fcf8fc /gcc
parent78441afbc88a084f88d821c88635966414fda3b2 (diff)
downloadgcc-9c1e641ac128838ef78f1618a568ad4315a58e66.zip
gcc-9c1e641ac128838ef78f1618a568ad4315a58e66.tar.gz
gcc-9c1e641ac128838ef78f1618a568ad4315a58e66.tar.bz2
re PR debug/40521 (-g causes GCC to generate .eh_frame)
PR debug/40521 * dwarf2out.c (dwarf2out_init): Test whether HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking it is defined. From-SVN: r152598
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0dfb2d0..85ed160 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-10-09 Jakub Jelinek <jakub@redhat.com>
+ PR debug/40521
+ * dwarf2out.c (dwarf2out_init): Test whether
+ HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
+ it is defined.
+
PR rtl-optimization/41646
* calls.c (expand_call): For BLKmode types returned in registers
avoid likely spilled hard regs in copy_blkmode_from_reg generated
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 27f2c45..a3f7ad2 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -20351,15 +20351,13 @@ dwarf2out_init (const char *filename ATTRIBUTE_UNUSED)
ASM_OUTPUT_LABEL (asm_out_file, cold_text_section_label);
}
-#ifdef HAVE_GAS_CFI_SECTIONS_DIRECTIVE
- if (dwarf2out_do_cfi_asm ())
+ if (HAVE_GAS_CFI_SECTIONS_DIRECTIVE && dwarf2out_do_cfi_asm ())
{
#ifndef TARGET_UNWIND_INFO
if (USING_SJLJ_EXCEPTIONS || (!flag_unwind_tables && !flag_exceptions))
#endif
fprintf (asm_out_file, "\t.cfi_sections\t.debug_frame\n");
}
-#endif
}
/* A helper function for dwarf2out_finish called through