r130097 - in /trunk/gcc: ChangeLog fold-const.c...
rguenth@gcc.gnu.org
rguenth@gcc.gnu.org
Mon Nov 12 13:24:00 GMT 2007
Author: rguenth
Date: Mon Nov 12 13:24:06 2007
New Revision: 130097
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130097
Log:
2007-11-12 Richard Guenther <rguenther@suse.de>
PR middle-end/34027
* fold-const.c (fold_binary): Fold n - (n / m) * m to n % m.
(fold_binary): Fold unsinged FLOOR_DIV_EXPR to TRUNC_DIV_EXPR.
* gcc.dg/pr34027-1.c: New testcase.
* gcc.dg/pr34027-2.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/pr34027-1.c
trunk/gcc/testsuite/gcc.dg/pr34027-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list