This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r121252 - in /trunk/gcc: ChangeLog fold-const.c...
- From: sayle at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 28 Jan 2007 03:48:42 -0000
- Subject: r121252 - in /trunk/gcc: ChangeLog fold-const.c...
Author: sayle
Date: Sun Jan 28 03:48:41 2007
New Revision: 121252
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121252
Log:
* fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
1*X check that the constant hasn't overflowed, to preserve the
TREE_OVERFLOW bit.
(round_up): Provide an efficient implementation when rouding-up an
INTEGER_CST to a power-of-two.
* gcc-dg/large-size-array-3.c: New test case.
Added:
trunk/gcc/testsuite/gcc.dg/large-size-array-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog