re PR tree-optimization/33146 (ICE in build_polynomial_chrec, at tree-chrec.h:136)
authorRichard Guenther <rguenther@suse.de>
Sat, 22 Sep 2007 09:39:41 +0000 (09:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 22 Sep 2007 09:39:41 +0000 (09:39 +0000)
commitb9e67f8b4b38059390c4ccc0f12285544618feec
tree4d3c04a1ba5c20891e6ff625a7e0c0c52afa9b11
parent8deb1d3134dd1b9c1b95e861ea00cdc115d52edc
re PR tree-optimization/33146 (ICE in build_polynomial_chrec, at tree-chrec.h:136)

2007-09-22  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/33146
* fold-const.c (fold_binary): Use the original tree
for negating.
* tree.h (STRIP_SIGN_NOPS): Converting from or to pointer
also changes "sign".

* gcc.c-torture/compile/pr33146.c: New testcase.

From-SVN: r128666
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr33146.c [new file with mode: 0644]
gcc/tree.h