From 03275f8132e42ba83689b3a23a4518b4365e8f9e Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Mon, 3 Mar 2003 22:37:11 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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); -- 2.30.2