This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30364] [4.1/4.2 Regression] Wrong variable ranges due to constant folding
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2007 13:15:44 -0000
- Subject: [Bug middle-end/30364] [4.1/4.2 Regression] Wrong variable ranges due to constant folding
- References: <bug-30364-7904@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from rguenth at gcc dot gnu dot org 2007-03-05 13:15 -------
Subject: Bug 30364
Author: rguenth
Date: Mon Mar 5 13:15:25 2007
New Revision: 122548
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122548
Log:
2007-03-05 Richard Guenther <rguenther@suse.de>
Backport from mainline:
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.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/torture/pr30364-1.c
- copied unchanged from r122414,
trunk/gcc/testsuite/gcc.dg/torture/pr30364-1.c
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/torture/pr30364-2.c
- copied unchanged from r122414,
trunk/gcc/testsuite/gcc.dg/torture/pr30364-2.c
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/torture/pr30364-3.c
- copied unchanged from r122414,
trunk/gcc/testsuite/gcc.dg/torture/pr30364-3.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/fold-const.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30364