aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2008-03-05 01:08:45 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2008-03-05 01:08:45 +0000
commit07c40d0bb9fffa145c083c67f282a6ec7d99cbe6 (patch)
tree4be42ddde0cbc7209d75e4eb18daee4af2464459 /gcc/fold-const.c
parente054e17e6dfa8bb4dd55e042f6e94e936ccbba54 (diff)
downloadgcc-07c40d0bb9fffa145c083c67f282a6ec7d99cbe6.zip
gcc-07c40d0bb9fffa145c083c67f282a6ec7d99cbe6.tar.gz
gcc-07c40d0bb9fffa145c083c67f282a6ec7d99cbe6.tar.bz2
fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed declaration and code.
* fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed declaration and code. (tree_invalid_nonnegative_warnv_p): Likewise. From-SVN: r132886
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index e32a737..7ee72ff 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -14238,8 +14238,7 @@ tree_single_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
if (TYPE_UNSIGNED (TREE_TYPE (t)))
return true;
- enum tree_code code = TREE_CODE (t);
- switch (code)
+ switch (TREE_CODE (t))
{
case SSA_NAME:
/* Query VRP to see if it has recorded any information about
@@ -14276,10 +14275,10 @@ tree_single_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
static bool
tree_invalid_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
{
+ enum tree_code code = TREE_CODE (t);
if (TYPE_UNSIGNED (TREE_TYPE (t)))
return true;
- enum tree_code code = TREE_CODE (t);
switch (code)
{
case TARGET_EXPR: