This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r127779 - in /branches/gcc-4_2-branch/gcc: fold...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 24 Aug 2007 17:15:53 -0000
- Subject: r127779 - in /branches/gcc-4_2-branch/gcc: fold...
Author: jakub
Date: Fri Aug 24 17:15:51 2007
New Revision: 127779
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127779
Log:
PR middle-end/32912
* fold-const.c (fold_binary): Only optimize X | ~X and X ^ ~X for
integral types.
* gcc.dg/pr32912-1.c: New test.
* gcc.dg/pr32912-2.c: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr32912-1.c
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr32912-2.c
Modified:
branches/gcc-4_2-branch/gcc/fold-const.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog