aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-04-10 05:13:59 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-04-10 05:13:59 +0000
commitcf26aa89100a9340eaae73c3beee6dd791cb7777 (patch)
tree5acf7f2bbaf4d2245c84b597503f5ad48981777f
parentef2bb311e5876bd844395f54c823588e01bf01a3 (diff)
downloadgcc-cf26aa89100a9340eaae73c3beee6dd791cb7777.zip
gcc-cf26aa89100a9340eaae73c3beee6dd791cb7777.tar.gz
gcc-cf26aa89100a9340eaae73c3beee6dd791cb7777.tar.bz2
expr.c (store_constructor): Don't bother clearing target if we're about to assign a vector to it using...
* expr.c (store_constructor): Don't bother clearing target if we're about to assign a vector to it using vec_init_optab. From-SVN: r112817
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expr.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2042aba..d21a6db 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-09 Roger Sayle <roger@eyesopen.com>
+
+ * expr.c (store_constructor): Don't bother clearing target if
+ we're about to assign a vector to it using vec_init_optab.
+
2006-04-10 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-alias.c (lhs_may_store_to): New function.
diff --git a/gcc/expr.c b/gcc/expr.c
index 904d4fc..1f4cbe1 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -5325,7 +5325,7 @@ store_constructor (tree exp, rtx target, int cleared, HOST_WIDE_INT size)
}
/* Inform later passes that the old value is dead. */
- if (!cleared && REG_P (target))
+ if (!cleared && !vector && REG_P (target))
emit_move_insn (target, CONST0_RTX (GET_MODE (target)));
/* Store each element of the constructor into the corresponding