From: jakub Date: Thu, 13 May 2010 14:24:36 +0000 (+0000) Subject: PR debug/44104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a101a346c24b49aaff7326443ce0ff99d4cc26a1;p=thirdparty%2Fgcc.git PR debug/44104 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die if it is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159367 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c65ea2314873..23187cf20302 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-05-13 Jakub Jelinek + + PR debug/44104 + * dwarf2out.c (modified_type_die): Don't dereference mod_type_die + if it is NULL. + 2010-05-13 Kai Tietz * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index fc941e2bde94..70dbd8e1da9c 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -12544,7 +12544,7 @@ modified_type_die (tree type, int is_const_type, int is_volatile_type, add_name_attribute (mod_type_die, IDENTIFIER_POINTER (name)); } /* This probably indicates a bug. */ - else if (mod_type_die->die_tag == DW_TAG_base_type) + else if (mod_type_die && mod_type_die->die_tag == DW_TAG_base_type) add_name_attribute (mod_type_die, "__unknown__"); if (qualified_type)