From: Rafael Avila de Espindola Date: Tue, 15 Apr 2008 13:48:52 +0000 (+0000) Subject: tree-const.c (tree_call_nonnegative_warnv_p): Remove local variable arg1. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0599470108a1f14c8b9bf4c37d8f7412eeca31b;p=gcc.git tree-const.c (tree_call_nonnegative_warnv_p): Remove local variable arg1. 2008-04-15 Rafael Espindola * gcc/tree-const.c (tree_call_nonnegative_warnv_p): Remove local variable arg1. From-SVN: r134315 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b00f53d6085..1940d2a4d2c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-04-15 Rafael Espindola + + * gcc/tree-const.c (tree_call_nonnegative_warnv_p): Remove local + variable arg1. + 2008-04-15 Richard Guenther * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 5319c6f7191..c1451789af0 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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);