aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-03 21:25:11 +0000
committerRichard Stallman <rms@gnu.org>1993-03-03 21:25:11 +0000
commit8e27715a9a56c41c74b8af878a3fd6503a1285bf (patch)
tree9cafc2f2378ebce6e96c0311a87851324ca95a5d /gcc/tree.c
parent742e43a2fac36dbe9640552002b1404dc094e5d9 (diff)
downloadgcc-8e27715a9a56c41c74b8af878a3fd6503a1285bf.zip
gcc-8e27715a9a56c41c74b8af878a3fd6503a1285bf.tar.gz
gcc-8e27715a9a56c41c74b8af878a3fd6503a1285bf.tar.bz2
(build_complex): Set the TREE_TYPE based on real part.
From-SVN: r3625
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 8fe09a1..36f5a94 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1227,6 +1227,7 @@ build_complex (real, imag)
register tree t = make_node (COMPLEX_CST);
TREE_REALPART (t) = real;
TREE_IMAGPART (t) = imag;
+ TREE_TYPE (t) = build_complex_type (TREE_TYPE (real));
return t;
}