OSDN Git Service

2005-11-19 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Nov 2005 11:29:10 +0000 (11:29 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Nov 2005 11:29:10 +0000 (11:29 +0000)
commit1c9af531f1af2a9b999f17f42f30b1b4f3ee8536
tree21498ed60c2bf5fd17466e15a033794c45a3a290
parente043dcaba58042c99c9db7fcaf9de04f2dd05405
2005-11-19  Richard Guenther  <rguenther@suse.de>

        PR middle-end/23294
* fold-const.c (fold_plusminus_mult_expr): New function.
(fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
cases, remove now unnecessary code.

* gcc.dg/tree-ssa/pr23294.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107218 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr23294.c [new file with mode: 0644]