re PR middle-end/44104 (New test failures)
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 May 2010 14:24:36 +0000 (16:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 May 2010 14:24:36 +0000 (16:24 +0200)
PR debug/44104
* dwarf2out.c (modified_type_die): Don't dereference mod_type_die
if it is NULL.

From-SVN: r159367

gcc/ChangeLog
gcc/dwarf2out.c

index c65ea2314873f0e456b60d808574f214b191d5a7..23187cf203020d9680fd1fb1ee2dbab5034af07a 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-13  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/44104
+       * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
+       if it is NULL.
+
 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
 
        * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
index fc941e2bde9436abac8c38af0c9dc717e154b205..70dbd8e1da9c686a9f3faac88febbecdbf0d14de 100644 (file)
@@ -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)