This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r133632 - in /trunk/gcc: ChangeLog fold-const.c...
- From: rguenth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 27 Mar 2008 09:17:43 -0000
- Subject: r133632 - in /trunk/gcc: ChangeLog fold-const.c...
Author: rguenth
Date: Thu Mar 27 09:17:43 2008
New Revision: 133632
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133632
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/fold-addr-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c