This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r139709 - in /branches/gcc-4_3-branch/gcc: Chan...
- From: rguenth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 28 Aug 2008 14:18:23 -0000
- Subject: r139709 - in /branches/gcc-4_3-branch/gcc: Chan...
Author: rguenth
Date: Thu Aug 28 14:18:23 2008
New Revision: 139709
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139709
Log:
2008-08-28 Richard Guenther <rguenther@suse.de>
PR middle-end/36548
PR middle-end/37125
* fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
if the multiplication does not overflow.
* gcc.c-torture/execute/pr37125.c: New testcase.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr37125.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog