From: Richard Henderson Date: Sun, 16 Jun 2002 20:24:00 +0000 (-0700) Subject: dwarf2out.c (modified_type_die): Don't assign the qualified die to the unqualified... X-Git-Tag: releases/gcc-3.3.0~4291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8370aa3aca1ed4b0fb838b6aa58fb90e57c1bd5a;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 84bc9295b353..a4f7dcfa3ba5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-06-16 Richard Henderson + + * 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 * i386-protos.h (x86_field_alignment): Declare. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3941490109dd..18a17e0f4a2b 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