OSDN Git Service

2006-10-28 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Oct 2006 18:03:21 +0000 (18:03 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Oct 2006 18:03:21 +0000 (18:03 +0000)
commit26e1261a7d5763cee4e7280239cd64e0ad6b3cdb
treecc83b84ce7c4da661546d58027790862ce4092db
parentef2f1a1042205241206d078c68f75bcfe1170e15
2006-10-28  Richard Guenther  <rguenther@suse.de>

PR middle-end/26899
* fold-const.c (maybe_canonicalize_comparison_1): Helper
for maybe_canonicalize_comparison.
(maybe_canonicalize_comparison): New function for canonicalizing
comparison trees.
(fold_comparison): Call it to canonicalize comparisons with
constants involved.

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

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