OSDN Git Service

2008-03-27 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Mar 2008 09:17:43 +0000 (09:17 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Mar 2008 09:17:43 +0000 (09:17 +0000)
commitffdf1c47fd45ffd4c2038bd183667b4e73adacd0
tree24596a80ba3991139c61c72fb30d21fdddb5e9b5
parentd159b72db8d823a124e1dd0d60e0d806e3df2c7e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133632 138bc75d-0d04-0410-961f-82ee72b054a4
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