From 001afe59036eabdd9cd199a864ffe2b8a7852519 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 16 Jun 2002 13:54:30 -0700 Subject: [PATCH] dwarf2out.c (modified_type_die): Don't assign the qualified die to the unqualified type. * dwarf2out.c (modified_type_die): Don't assign the qualified die to the unqualified type. From-SVN: r54677 --- gcc/ChangeLog | 6 ++++++ gcc/dwarf2out.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 276dbea76229..814032b961cd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-06-16 Richard Henderson + + PR c/7030 + * dwarf2out.c (modified_type_die): Don't assign the qualified die + to the unqualified type. + 2002-06-14 Jeff Sturm * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 023f621a1d93..c691dd0875ae 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -7573,11 +7573,11 @@ modified_type_die (type, is_const_type, is_volatile_type, context_die) } /* We want to equate the qualified type to the die below. */ - if (qualified_type) - type = qualified_type; + type = qualified_type; } - equate_type_number_to_die (type, mod_type_die); + if (type) + equate_type_number_to_die (type, mod_type_die); if (item_type) /* We must do this after the equate_type_number_to_die call, in case this is a recursive type. This ensures that the modified_type_die -- 2.47.2