tree-const.c (tree_call_nonnegative_warnv_p): Remove local variable arg1.
authorRafael Avila de Espindola <espindola@google.com>
Tue, 15 Apr 2008 13:48:52 +0000 (13:48 +0000)
committerRafael Espindola <espindola@gcc.gnu.org>
Tue, 15 Apr 2008 13:48:52 +0000 (13:48 +0000)
2008-04-15  Rafael Espindola  <espindola@google.com>

* gcc/tree-const.c (tree_call_nonnegative_warnv_p): Remove local
variable arg1.

From-SVN: r134315

gcc/ChangeLog
gcc/fold-const.c

index b00f53d6085f9aa6c06ca2d80ac42e0816fb1035..1940d2a4d2cb5fac5803f32df81a75044b759d3d 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-15  Rafael Espindola  <espindola@google.com>
+
+       * gcc/tree-const.c (tree_call_nonnegative_warnv_p): Remove local
+       variable arg1.
+
 2008-04-15  Richard Guenther  <rguenther@suse.de>
 
        * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
index 5319c6f71917037e12c73cec4972b2a6fad3c2b2..c1451789af0d19d2c1a001dfbe3f3964b5055dbf 100644 (file)
@@ -14103,12 +14103,9 @@ tree_call_nonnegative_warnv_p (enum tree_code code,  tree type, tree fndecl,
        CASE_FLT_FN (BUILT_IN_POWI):
        /* True if the 1st argument is nonnegative or the second
           argument is an even integer.  */
-       if (TREE_CODE (arg1) == INTEGER_CST)
-         {
-           tree arg1 = arg1;
-           if ((TREE_INT_CST_LOW (arg1) & 1) == 0)
-             return true;
-         }
+       if (TREE_CODE (arg1) == INTEGER_CST
+           && (TREE_INT_CST_LOW (arg1) & 1) == 0)
+         return true;
        return tree_expr_nonnegative_warnv_p (arg0,
                                              strict_overflow_p);