OSDN Git Service

2007-09-22 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Sep 2007 09:39:41 +0000 (09:39 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Sep 2007 09:39:41 +0000 (09:39 +0000)
commita69a910a1563215b751f1dda609a0274b645e492
tree4d3c04a1ba5c20891e6ff625a7e0c0c52afa9b11
parent8a1586baa04be64c3347723371fbd6b8ce78a049
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.

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