]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (output_call_frame_info): Create debug_frame_section if it hasn't been...
authorRoger Sayle <roger@eyesopen.com>
Tue, 11 Apr 2006 23:53:39 +0000 (23:53 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 11 Apr 2006 23:53:39 +0000 (23:53 +0000)
* dwarf2out.c (output_call_frame_info): Create debug_frame_section
if it hasn't been initialized by dwarf2out_init.

From-SVN: r112871

gcc/ChangeLog
gcc/dwarf2out.c

index b03e660e046625b138df2982739ac41ab10cd4f9..bca74da15cdb42753717402f44d3c049fdc32c7b 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-11  Roger Sayle  <roger@eyesopen.com>
+
+       * dwarf2out.c (output_call_frame_info): Create debug_frame_section
+       if it hasn't been initialized by dwarf2out_init.
+
 2006-04-11  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
 
        * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
index e3cb00932e7fc100c1c1ee7876938971227a00e7..3f857b6857f30472282f1be7d18c12fc6cd70f0c 100644 (file)
@@ -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);