summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2007-10-22 15:29:17 +0000
committerMichael Matz <matz@gcc.gnu.org>2007-10-22 15:29:17 +0000
commit22a5d0133dae10ca048e822f180e40cf9400a253 (patch)
tree8102e28c36b811c04b10a0ba979e8d44c5bcbf86 /gcc/tree-ssa-phiopt.c
parent174f8765a8a7198d4d3b05b476ed9ffa40c86cda (diff)
downloadgcc-22a5d0133dae10ca048e822f180e40cf9400a253.tar.gz
re PR tree-optimization/33855 (Segfault in verify_ssa/execute_function_todo with -O)
PR tree-optimization/33855 * tree-ssa-phiopt.c (cond_store_replacement): Handle * COMPLEX_TYPE and VECTOR_TYPE. * gcc.c-torture/compile/pr33855.c: New testcase. From-SVN: r129551
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index a8376cf5885..6df8420c22f 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -1287,6 +1287,9 @@ cond_store_replacement (basic_block middle_bb, basic_block join_bb,
{
condstoretemp = create_tmp_var (TREE_TYPE (lhs), "cstore");
get_var_ann (condstoretemp);
+ if (TREE_CODE (TREE_TYPE (lhs)) == COMPLEX_TYPE
+ || TREE_CODE (TREE_TYPE (lhs)) == VECTOR_TYPE)
+ DECL_GIMPLE_REG_P (condstoretemp) = 1;
}
add_referenced_var (condstoretemp);