fold-const.c (target.h): Include.
authorRichard Guenther <rguenther@suse.de>
Thu, 27 Mar 2008 09:17:43 +0000 (09:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Mar 2008 09:17:43 +0000 (09:17 +0000)
commitbd03c0848a46497cb991f1425c232ab1d70894cd
tree24596a80ba3991139c61c72fb30d21fdddb5e9b5
parent87a72aa8f9a533b3d885b04be81b1c81d526f542
fold-const.c (target.h): Include.

2008-03-27  Richard Guenther  <rguenther@suse.de>

* fold-const.c (target.h): Include.
(fold_comparison): Fold comparison of addresses of decls
that bind locally or of constants.  Consolidate address folding code.
* tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
results from fold_binary_to_constant.
(compare_values_warnv): Likewise.

* gcc.dg/fold-addr-1.c: New testcase.

From-SVN: r133632
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-addr-1.c [new file with mode: 0644]
gcc/tree-vrp.c