diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/dwarf2out.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 058e788..09c7c4c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> + + * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and + prune_unused_types calls. + 2003-03-03 Jason Merrill <jason@redhat.com> * tree-inline.c (find_builtin_longjmp_call): Save and restore diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 03d02cc..a1a06cb 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); |
