]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (modified_type_die): Don't assign the qualified die to the unqualified...
authorRichard Henderson <rth@redhat.com>
Sun, 16 Jun 2002 20:54:30 +0000 (13:54 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 16 Jun 2002 20:54:30 +0000 (13:54 -0700)
        * dwarf2out.c (modified_type_die): Don't assign the qualified die
        to the unqualified type.

From-SVN: r54677

gcc/ChangeLog
gcc/dwarf2out.c

index 276dbea76229edc55ba36c28bb15aea63bb65aab..814032b961cdf9e653cdf606283d866748d1f22a 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-16  Richard Henderson  <rth@redhat.com>
+
+       PR c/7030
+       * dwarf2out.c (modified_type_die): Don't assign the qualified die
+       to the unqualified type.
+
 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
 
        * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add
index 023f621a1d93852be657c727891ef55acdad5512..c691dd0875ae712e08c5fe44bc63712377f3c94d 100644 (file)
@@ -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