diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-08 18:05:04 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-08 18:05:04 +0000 |
commit | 1737b88ca8f5c70581394b5f0391b70ce5fbf39d (patch) | |
tree | 7edc035a3eacb5bdb81a0175686988f2f0a128b9 /gcc/tree-complex.c | |
parent | 079133968d30f9ca5ea932e868a824bca3f56ee2 (diff) | |
download | gcc-1737b88ca8f5c70581394b5f0391b70ce5fbf39d.tar.gz |
2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22356
* testsuite/gcc.dg/pr22356-1.c: New test.
2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22356
* tree-complex.c (expand_complex_libcall): Produce
REALPART_EXPR/IMAGPART_EXPR with the correct type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101781 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r-- | gcc/tree-complex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index e32dd237be8..21e92456051 100644 --- a/gcc/tree-complex.c +++ b/gcc/tree-complex.c @@ -833,6 +833,7 @@ expand_complex_libcall (block_stmt_iterator *bsi, tree ar, tree ai, if (in_ssa_p) { tree lhs = TREE_OPERAND (stmt, 0); + type = TREE_TYPE (type); update_complex_components (bsi, stmt, build1 (REALPART_EXPR, type, lhs), build1 (IMAGPART_EXPR, type, lhs)); |