diff options
author | Olivier Hainque <hainque@adacore.com> | 2009-08-30 17:22:15 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2009-08-30 17:22:15 +0000 |
commit | 40a99889160feec59b82f191abe944c1eedaa2b0 (patch) | |
tree | e4a224cf4c04eafa519c1e2718302a0ab55bfa7b | |
parent | f945e22962a013fac2d7ee26bb510734e0cf4dac (diff) | |
download | gcc-40a99889160feec59b82f191abe944c1eedaa2b0.zip gcc-40a99889160feec59b82f191abe944c1eedaa2b0.tar.gz gcc-40a99889160feec59b82f191abe944c1eedaa2b0.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 34 |
2 files changed, 22 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ec6c3cc..83081f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> PR tree-optimization/41186 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index aad6ee7..9ff6a17 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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). */ static void @@ -3560,23 +3577,6 @@ output_fde (dw_fde_ref fde, bool for_eh, bool second, 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 that relates to calculating the frame pointer, and records the location of saved registers. */ |