OSDN Git Service

PR debug/44104
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 2010 14:24:36 +0000 (14:24 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:07:54 +0000 (14:07 +0900)
* 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

gcc/ChangeLog
gcc/dwarf2out.c

index c65ea23..23187cf 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
 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
 
        * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
index fc941e2..70dbd8e 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.  */
       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)
     add_name_attribute (mod_type_die, "__unknown__");
 
   if (qualified_type)