This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Always set TYPE_NAME for complex types
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 31 Aug 2007 12:26:30 +0200 (CEST)
- Subject: [PATCH] Always set TYPE_NAME for complex types
This patch makes us always set TYPE_NAME for complex types making
DECL_UIDs the same for -g vs. non-g compiles. Until early inlining
that is.
Richard.
2007-08-31 Richard Guenther <rguenther@suse.de>
* tree.c (build_complex_type): Always set TYPE_NAME for
comples types.
Index: tree.c
===================================================================
--- tree.c (revision 127926)
+++ tree.c (working copy)
@@ -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)