This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26729] [4.0/4.1 regression] bad bitops folding
- From: "sayle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2006 04:19:46 -0000
- Subject: [Bug middle-end/26729] [4.0/4.1 regression] bad bitops folding
- References: <bug-26729-4387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from sayle at gcc dot gnu dot org 2006-05-14 04:19 -------
Subject: Bug 26729
Author: sayle
Date: Sun May 14 04:19:32 2006
New Revision: 113755
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113755
Log:
PR middle-end/26729
* fold-const.c (fold_truthop): Check integer_nonzerop instead of
!integer_zerop to avoid problems with TREE_OVERFLOW.
* gcc.dg/pr26729-1.c: New test case.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr26729-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/fold-const.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26729