tree.c (build_complex_type): Always set TYPE_NAME for comples types.
authorRichard Guenther <rguenther@suse.de>
Fri, 31 Aug 2007 10:23:25 +0000 (10:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 31 Aug 2007 10:23:25 +0000 (10:23 +0000)
2007-08-31  Richard Guenther  <rguenther@suse.de>

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

From-SVN: r127975

gcc/ChangeLog
gcc/tree.c

index 524b9f105ae681192a292254d4b2183232840c27..bc077fae8a459f627c1ffdc215ec502dc56ddf79 100644 (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
index fc5c8246cccd652f2b5b3e053daf6fda7ed1c4c2..c9587aafb26c77471d76fbf26885c68c05c71537 100644 (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)