aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-06-16 13:24:00 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-06-16 13:24:00 -0700
commit8370aa3aca1ed4b0fb838b6aa58fb90e57c1bd5a (patch)
tree2bf541445b89fc7f7f5346d556e98c8237963e2e /gcc
parente932b21b1897f24e368954c6640c52808b86503c (diff)
downloadgcc-8370aa3aca1ed4b0fb838b6aa58fb90e57c1bd5a.zip
gcc-8370aa3aca1ed4b0fb838b6aa58fb90e57c1bd5a.tar.gz
gcc-8370aa3aca1ed4b0fb838b6aa58fb90e57c1bd5a.tar.bz2
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: r54675
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 84bc929..a4f7dcf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 3941490..18a17e0 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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