Commit 40a99889 by Olivier Hainque Committed by Olivier Hainque

dwarf2out.c (switch_to_frame_table_section): Move definition prior to first use.

        * dwarf2out.c (switch_to_frame_table_section): Move
        definition prior to first use.

From-SVN: r151230
parent f945e229
2009-08-30 Olivier Hainque <hainque@adacore.com>
* dwarf2out.c (switch_to_frame_table_section): Move
definition prior to first use.
2009-08-30 Richard Guenther <rguenther@suse.de> 2009-08-30 Richard Guenther <rguenther@suse.de>
PR tree-optimization/41186 PR tree-optimization/41186
......
...@@ -2992,6 +2992,23 @@ switch_to_eh_frame_section (bool back) ...@@ -2992,6 +2992,23 @@ switch_to_eh_frame_section (bool back)
} }
} }
/* Switch [BACK] to the eh or debug frame table section, depending on
FOR_EH. */
static void
switch_to_frame_table_section (int for_eh, bool back)
{
if (for_eh)
switch_to_eh_frame_section (back);
else
{
if (!debug_frame_section)
debug_frame_section = get_section (DEBUG_FRAME_SECTION,
SECTION_DEBUG, NULL);
switch_to_section (debug_frame_section);
}
}
/* Output a Call Frame Information opcode and its operand(s). */ /* Output a Call Frame Information opcode and its operand(s). */
static void static void
...@@ -3560,23 +3577,6 @@ output_fde (dw_fde_ref fde, bool for_eh, bool second, ...@@ -3560,23 +3577,6 @@ output_fde (dw_fde_ref fde, bool for_eh, bool second,
j += 2; j += 2;
} }
/* Switch [BACK] to the eh or debug frame table section, depending on
FOR_EH. */
static void
switch_to_frame_table_section (int for_eh, bool back)
{
if (for_eh)
switch_to_eh_frame_section (back);
else
{
if (!debug_frame_section)
debug_frame_section = get_section (DEBUG_FRAME_SECTION,
SECTION_DEBUG, NULL);
switch_to_section (debug_frame_section);
}
}
/* Output the call frame information used to record information /* Output the call frame information used to record information
that relates to calculating the frame pointer, and records the that relates to calculating the frame pointer, and records the
location of saved registers. */ location of saved registers. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment