projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214d5b8
)
(copy_constant, case COMPLEX_CST): Add new arg, TYPE, to call to build_complex.
author
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 29 Sep 1996 23:04:12 +0000
(19:04 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 29 Sep 1996 23:04:12 +0000
(19:04 -0400)
From-SVN: r12866
gcc/varasm.c
patch
|
blob
|
history
diff --git
a/gcc/varasm.c
b/gcc/varasm.c
index d6a425074128ad7dc2c35a939dfec82fdb4e5b29..28e322d0d81b4bd02520e0185d3f659d9cb3270c 100644
(file)
--- a/
gcc/varasm.c
+++ b/
gcc/varasm.c
@@
-2796,7
+2796,8
@@
copy_constant (exp)
return copy_node (exp);
case COMPLEX_CST:
- return build_complex (copy_constant (TREE_REALPART (exp)),
+ return build_complex (TREE_TYPE (exp),
+ copy_constant (TREE_REALPART (exp)),
copy_constant (TREE_IMAGPART (exp)));
case PLUS_EXPR: