This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53501] [4.5/4.6/4.7/4.8 Regression] scev introduces signed overflow
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 May 2012 12:32:17 +0000
- Subject: [Bug tree-optimization/53501] [4.5/4.6/4.7/4.8 Regression] scev introduces signed overflow
- Auto-submitted: auto-generated
- References: <bug-53501-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53501
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-30 12:32:17 UTC ---
Author: rguenth
Date: Wed May 30 12:32:10 2012
New Revision: 188010
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188010
Log:
2012-05-30 Richard Guenther <rguenther@suse.de>
PR middle-end/53501
* fold-const.c (fold_binary_loc): Make sure to call
fold_plusminus_mult_expr with the original sign of operands.
* gcc.dg/torture/pr53501.c: New testcase.
* c-c++-common/restrict-2.c: Adjust.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr53501.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/fold-const.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/c-c++-common/restrict-2.c