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
This commit is contained in:
Richard Guenther 2007-08-31 10:23:25 +00:00 committed by Richard Biener
parent 671231d26e
commit 05af427c1f
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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>
* config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New

View File

@ -5992,10 +5992,8 @@ build_complex_type (tree component_type)
= build_complex_type (TYPE_CANONICAL (component_type));
}
/* If we are writing Dwarf2 output we need to create a name,
since complex is a fundamental type. */
if ((write_symbols == DWARF2_DEBUG || write_symbols == VMS_AND_DWARF2_DEBUG)
&& ! TYPE_NAME (t))
/* We need to create a name, since complex is a fundamental type. */
if (! TYPE_NAME (t))
{
const char *name;
if (component_type == char_type_node)