From: Richard Guenther Date: Fri, 31 Aug 2007 10:23:25 +0000 (+0000) Subject: tree.c (build_complex_type): Always set TYPE_NAME for comples types. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05af427c1fbfd2d6a902a4aa98140ee9a1f8221e;p=gcc.git tree.c (build_complex_type): Always set TYPE_NAME for comples types. 2007-08-31 Richard Guenther * tree.c (build_complex_type): Always set TYPE_NAME for comples types. From-SVN: r127975 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 524b9f105ae..bc077fae8a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-08-31 Richard Guenther + + * tree.c (build_complex_type): Always set TYPE_NAME for + comples types. + 2007-08-31 Olivier Hainque * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New diff --git a/gcc/tree.c b/gcc/tree.c index fc5c8246ccc..c9587aafb26 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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)