]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* dwarf2out.c (modified_type_die): Don't assign the qualified die
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Jun 2002 20:24:00 +0000 (20:24 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Jun 2002 20:24:00 +0000 (20:24 +0000)
        to the unqualified type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54675 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index 84bc9295b3532d6e948e7d02d951a7df69a4be75..a4f7dcfa3ba58cad6f574914ebdb88d61c319671 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-16  Richard Henderson  <rth@redhat.com>
+
+       * dwarf2out.c (modified_type_die): Don't assign the qualified die
+       to the unqualified type.
+
 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        * i386-protos.h (x86_field_alignment): Declare.
index 3941490109dd96f3e504084f410378847a2da36e..18a17e0f4a2b3f7e5ef561cf5c9eac154f3a3540 100644 (file)
@@ -7603,11 +7603,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