aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-04-11 23:53:39 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-04-11 23:53:39 +0000
commit10934c3b87f733b8ad311b522755c1d9a2a24604 (patch)
tree33ff13aac4f351a36aea5b4a2b51b1e6e1d9e0dc /gcc/dwarf2out.c
parent63c9a19053b37dac6129f6d3f9e8ac1e3d930798 (diff)
downloadgcc-10934c3b87f733b8ad311b522755c1d9a2a24604.zip
gcc-10934c3b87f733b8ad311b522755c1d9a2a24604.tar.gz
gcc-10934c3b87f733b8ad311b522755c1d9a2a24604.tar.bz2
dwarf2out.c (output_call_frame_info): Create debug_frame_section if it hasn't been initialized by dwarf2out_init.
* dwarf2out.c (output_call_frame_info): Create debug_frame_section if it hasn't been initialized by dwarf2out_init. From-SVN: r112871
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index e3cb009..3f857b6 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -2218,7 +2218,12 @@ output_call_frame_info (int for_eh)
if (for_eh)
switch_to_eh_frame_section ();
else
- switch_to_section (debug_frame_section);
+ {
+ if (!debug_frame_section)
+ debug_frame_section = get_section (DEBUG_FRAME_SECTION,
+ SECTION_DEBUG, NULL);
+ switch_to_section (debug_frame_section);
+ }
ASM_GENERATE_INTERNAL_LABEL (section_start_label, FRAME_BEGIN_LABEL, for_eh);
ASM_OUTPUT_LABEL (asm_out_file, section_start_label);