From: Zdenek Dvorak Date: Mon, 3 Mar 2003 21:37:11 +0000 (+0100) Subject: dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and prune_unused_typ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03275f8132e42ba83689b3a23a4518b4365e8f9e;p=gcc.git dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and prune_unused_types calls. * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and prune_unused_types calls. From-SVN: r63734 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 058e788068e..09c7c4c9a06 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-03 Zdenek Dvorak + + * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and + prune_unused_types calls. + 2003-03-03 Jason Merrill * tree-inline.c (find_builtin_longjmp_call): Save and restore diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 03d02cc3860..a1a06cbf926 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -12975,14 +12975,14 @@ dwarf2out_finish (input_filename) we'll see the end of an include file before the beginning. */ reverse_all_dies (comp_unit_die); + if (flag_eliminate_unused_debug_types) + prune_unused_types (); + /* Generate separate CUs for each of the include files we've seen. They will go into limbo_die_list. */ if (flag_eliminate_dwarf2_dups) break_out_includes (comp_unit_die); - if (flag_eliminate_unused_debug_types) - prune_unused_types (); - /* Traverse the DIE's and add add sibling attributes to those DIE's that have children. */ add_sibling_attributes (comp_unit_die);