* fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 15 Nov 2013 11:07:40 +0000 (11:07 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 15 Nov 2013 11:07:40 +0000 (11:07 +0000)
From-SVN: r204839

gcc/ChangeLog
gcc/fold-const.c

index 0cbc2c7..f0cf490 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
+
 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
 
        * lto-streamer-in.c (input function): Call cgraph_create_node if
index 5ca7691..d08d0cd 100644 (file)
@@ -13824,8 +13824,7 @@ fold_binary_loc (location_t loc,
                   and X >= signed_max+1 because previous transformations.  */
                if (code == LE_EXPR || code == GT_EXPR)
                  {
-                   tree st;
-                   st = signed_type_for (TREE_TYPE (arg1));
+                   tree st = signed_type_for (arg1_type);
                    return fold_build2_loc (loc,
                                        code == LE_EXPR ? GE_EXPR : LT_EXPR,
                                        type, fold_convert_loc (loc, st, arg0),