]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/30364 (Wrong variable ranges due to constant folding)
authorRichard Guenther <rguenther@suse.de>
Wed, 28 Feb 2007 21:56:41 +0000 (21:56 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 Feb 2007 21:56:41 +0000 (21:56 +0000)
commita6d5f37cebac8c4c5e047d785d206c32d5be1fc9
tree256bfe6ccb786147c33a51a1bcfea95906edd36a
parentcfac137674c84791371f8bf56d672891c02bcecf
re PR middle-end/30364 (Wrong variable ranges due to constant folding)

2007-02-28  Richard Guenther  <rguenther@suse.de>

PR middle-end/30364
* fold-const.c (fold_binary): Do not associate expressions
with more than one variable for integer types that do not wrap.

* gcc.dg/torture/pr30364-1.c: New testcase.
* gcc.dg/torture/pr30364-2.c: Likewise.
* gcc.dg/torture/pr30364-3.c: Likewise.

From-SVN: r122414
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr30364-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr30364-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr30364-3.c [new file with mode: 0644]