Commit 05af427c by Richard Guenther Committed by Richard Biener

tree.c (build_complex_type): Always set TYPE_NAME for comples types.

2007-08-31  Richard Guenther  <rguenther@suse.de>

	* tree.c (build_complex_type): Always set TYPE_NAME for
	comples types.

From-SVN: r127975
parent 671231d2
2007-08-31 Richard Guenther <rguenther@suse.de>
* tree.c (build_complex_type): Always set TYPE_NAME for
comples types.
2007-08-31 Olivier Hainque <hainque@adacore.com> 2007-08-31 Olivier Hainque <hainque@adacore.com>
* config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
......
...@@ -5992,10 +5992,8 @@ build_complex_type (tree component_type) ...@@ -5992,10 +5992,8 @@ build_complex_type (tree component_type)
= build_complex_type (TYPE_CANONICAL (component_type)); = build_complex_type (TYPE_CANONICAL (component_type));
} }
/* If we are writing Dwarf2 output we need to create a name, /* We need to create a name, since complex is a fundamental type. */
since complex is a fundamental type. */ if (! TYPE_NAME (t))
if ((write_symbols == DWARF2_DEBUG || write_symbols == VMS_AND_DWARF2_DEBUG)
&& ! TYPE_NAME (t))
{ {
const char *name; const char *name;
if (component_type == char_type_node) if (component_type == char_type_node)
......
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