aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRafael Avila de Espindola <espindola@google.com>2008-04-15 13:48:52 +0000
committerRafael Espindola <espindola@gcc.gnu.org>2008-04-15 13:48:52 +0000
commitd0599470108a1f14c8b9bf4c37d8f7412eeca31b (patch)
tree9f797306cbca91de8462f79c318ef8f913cfa20f /gcc/fold-const.c
parent649caaad399d6f4865a4d0015a1ac76c3cce7eb0 (diff)
downloadgcc-d0599470108a1f14c8b9bf4c37d8f7412eeca31b.zip
gcc-d0599470108a1f14c8b9bf4c37d8f7412eeca31b.tar.gz
gcc-d0599470108a1f14c8b9bf4c37d8f7412eeca31b.tar.bz2
tree-const.c (tree_call_nonnegative_warnv_p): Remove local variable arg1.
2008-04-15 Rafael Espindola <espindola@google.com> * gcc/tree-const.c (tree_call_nonnegative_warnv_p): Remove local variable arg1. From-SVN: r134315
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 5319c6f..c145178 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);