This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r122767 - 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: Fri, 09 Mar 2007 23:09:11 -0000
- Subject: r122767 - in /trunk/gcc: ChangeLog fold-const.c...
Author: sayle
Date: Fri Mar 9 23:09:10 2007
New Revision: 122767
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122767
Log:
* fold-const.c (fold_comparison): Remove compile-time evaluation of
complex constant equality/inequality comparisons for here.
(fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
known at compile-time or can be simplified to a scalar comparison.
(fold_relational_const): Move compile-time evaluation of complex
constant equality/inequality comparisons to here.
* gcc.dg/fold-eqcmplx-1.c: New test case.
Added:
trunk/gcc/testsuite/gcc.dg/fold-eqcmplx-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog