[PATCH] Always set TYPE_NAME for complex types

Richard Guenther rguenther@suse.de
Fri Aug 31 10:43:00 GMT 2007


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)



More information about the Gcc-patches mailing list