Commit 1fcebc11 by Jakub Jelinek Committed by Jakub Jelinek

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
parent f2cbd86c
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> 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
* config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
......
...@@ -12544,7 +12544,7 @@ modified_type_die (tree type, int is_const_type, int is_volatile_type, ...@@ -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)); add_name_attribute (mod_type_die, IDENTIFIER_POINTER (name));
} }
/* This probably indicates a bug. */ /* 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__"); add_name_attribute (mod_type_die, "__unknown__");
if (qualified_type) if (qualified_type)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment