mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
e054e17e6d
commit
07c40d0bb9
|
@ -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>
|
2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
|
||||||
|
|
||||||
* doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
|
* doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
|
||||||
|
|
|
@ -14238,8 +14238,7 @@ tree_single_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
|
||||||
if (TYPE_UNSIGNED (TREE_TYPE (t)))
|
if (TYPE_UNSIGNED (TREE_TYPE (t)))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
enum tree_code code = TREE_CODE (t);
|
switch (TREE_CODE (t))
|
||||||
switch (code)
|
|
||||||
{
|
{
|
||||||
case SSA_NAME:
|
case SSA_NAME:
|
||||||
/* Query VRP to see if it has recorded any information about
|
/* 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
|
static bool
|
||||||
tree_invalid_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
|
tree_invalid_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
|
||||||
{
|
{
|
||||||
|
enum tree_code code = TREE_CODE (t);
|
||||||
if (TYPE_UNSIGNED (TREE_TYPE (t)))
|
if (TYPE_UNSIGNED (TREE_TYPE (t)))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
enum tree_code code = TREE_CODE (t);
|
|
||||||
switch (code)
|
switch (code)
|
||||||
{
|
{
|
||||||
case TARGET_EXPR:
|
case TARGET_EXPR:
|
||||||
|
|
Loading…
Reference in New Issue