fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed declaration and code.
authorGeoffrey Keating <geoffk@apple.com>
Wed, 5 Mar 2008 01:08:45 +0000 (01:08 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Wed, 5 Mar 2008 01:08:45 +0000 (01:08 +0000)
* fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
declaration and code.
(tree_invalid_nonnegative_warnv_p): Likewise.

From-SVN: r132886

gcc/ChangeLog
gcc/fold-const.c

index abc52894ae0a73fb7b3916f103f1b9f4ab5490b2..dc55d3ba2601f235ad08b3794f5f26203ed64b92 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-04  Geoff Keating  <geoffk@apple.com>
+
+       * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
+       declaration and code.
+       (tree_invalid_nonnegative_warnv_p): Likewise.
+
 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
 
        * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
index e32a737f2929e7b58201ce1017170fe47645ff79..7ee72ffd217f469529027d48fbf8a85e4761bc8f 100644 (file)
@@ -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: