Fix 0 != CODE_FOR_nothing thinko
authorRichard Henderson <rth@redhat.com>
Thu, 19 Jul 2012 18:53:20 +0000 (11:53 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 19 Jul 2012 18:53:20 +0000 (11:53 -0700)
        * 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.

From-SVN: r189672

gcc/ChangeLog
gcc/expr.c
gcc/tree-vect-stmts.c

index 9466848b5c685f7dd0a6178b2ed843baa3590fc8..d8b6a4dbc74067e1672dfa4d31a2d903542fc17c 100644 (file)
@@ -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.
index 5aec53e1737e0b596d0cb53d078da2ed4960a6a9..965086328546cc540c6d564256931fa1863f968c 100644 (file)
@@ -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);
index fb05063579f81433eed7c81f5e5ecf93080d3e2f..bb42cbca57925354d1b4231f2c799240006d3c65 100644 (file)
@@ -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;
     }