fold-const.c (target.h): Include.
authorRichard Guenther <rguenther@suse.de>
Wed, 26 Mar 2008 12:37:29 +0000 (12:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 26 Mar 2008 12:37:29 +0000 (12:37 +0000)
commit4990038deffbd5f5e6453c42d82d23d030cc0634
tree009a3001e6db5ff029f1ffacd768d9ef6a24e51a
parent813ab1d7df3a0c7c2de2c8e5c30ce6be69e0a6dd
fold-const.c (target.h): Include.

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.

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