aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-05-13 16:24:36 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-05-13 16:24:36 +0200
commit1fcebc1100ac1071632480c742df280649fab312 (patch)
tree29e33f156fe6cf39bd411b01712b1a7755d1045f /gcc
parentf2cbd86c34ffc36a36090944d18b86985b22442d (diff)
downloadgcc-1fcebc1100ac1071632480c742df280649fab312.zip
gcc-1fcebc1100ac1071632480c742df280649fab312.tar.gz
gcc-1fcebc1100ac1071632480c742df280649fab312.tar.bz2
re PR middle-end/44104 (New test failures)
PR debug/44104 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die if it is NULL. From-SVN: r159367
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c65ea23..23187cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index fc941e2..70dbd8e 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)