summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 10:23:25 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 10:23:25 +0000
commitc133ba938e437900a7f6e813bbed3bbfd022270b (patch)
tree37a29ba8d8dd1371ff4ef0c24b5ab7ae25901252 /gcc/tree.c
parentc410bb47079edfa1f29aefce414d59559c07eab3 (diff)
downloadgcc-c133ba938e437900a7f6e813bbed3bbfd022270b.tar.gz
2007-08-31 Richard Guenther <rguenther@suse.de>
* tree.c (build_complex_type): Always set TYPE_NAME for comples types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c6
1 files changed, 2 insertions, 4 deletions
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)