summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-19 18:53:20 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-19 18:53:20 +0000
commitd386876e70541940e2344a375bdf43f02f60615f (patch)
tree7c4d1ae7f8cde8bfd2a09299f13e05bb8dba41ec
parent006e76552254b00892858364b87a22790fa5dfc3 (diff)
downloadgcc-d386876e70541940e2344a375bdf43f02f60615f.tar.gz
Fix 0 != CODE_FOR_nothing thinko
* expr.c (store_constructor): Initialize icode with CODE_FOR_nothing. * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for dummy != CODE_FOR_nothing value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189672 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/expr.c2
-rw-r--r--gcc/tree-vect-stmts.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9466848b5c6..d8b6a4dbc74 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-19 Richard Henderson <rth@redhat.com>
+
+ * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
+ * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
+ dummy != CODE_FOR_nothing value.
+
2012-07-19 Uros Bizjak <ubizjak@gmail.com>
* doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
diff --git a/gcc/expr.c b/gcc/expr.c
index 5aec53e1737..96508632854 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6130,7 +6130,7 @@ store_constructor (tree exp, rtx target, int cleared, HOST_WIDE_INT size)
constructor_elt *ce;
int i;
int need_to_clear;
- int icode = 0;
+ int icode = CODE_FOR_nothing;
tree elttype = TREE_TYPE (type);
int elt_size = tree_low_cst (TYPE_SIZE (elttype), 1);
enum machine_mode eltmode = TYPE_MODE (elttype);
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index fb05063579f..bb42cbca579 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -3531,7 +3531,7 @@ vectorizable_operation (gimple stmt, gimple_stmt_iterator *gsi,
if (code == MULT_HIGHPART_EXPR)
{
if (can_mult_highpart_p (vec_mode, TYPE_UNSIGNED (vectype)))
- icode = 0;
+ icode = LAST_INSN_CODE;
else
icode = CODE_FOR_nothing;
}