OSDN Git Service

2008-03-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 12:37:29 +0000 (12:37 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Mar 2008 12:37:29 +0000 (12:37 +0000)
commit60f4218862df15c0c430025088207773347728b4
tree009a3001e6db5ff029f1ffacd768d9ef6a24e51a
parenta0ebe2eeac831569f35075b8708b6fc7031c3c7e
2008-03-26  Richard Guenther  <rguenther@suse.de>

* fold-const.c (target.h): Include.
(fold_comparison): Fold comparison of addresses of two decls
that bind locally.  Consolidate address folding code.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133599 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]