This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/40204] [4.3/4.4/4.5 Regression] segfault with bitfields in structs
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2009 21:11:22 -0000
- Subject: [Bug middle-end/40204] [4.3/4.4/4.5 Regression] segfault with bitfields in structs
- References: <bug-40204-17740@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jakub at gcc dot gnu dot org 2009-05-20 21:11 -------
Subject: Bug 40204
Author: jakub
Date: Wed May 20 21:11:10 2009
New Revision: 147750
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147750
Log:
PR middle-end/40204
* fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
recursion if build_int_cst_type returns the same INTEGER_CST as
arg1.
* gcc.c-torture/compile/pr40204.c: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40204.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/fold-const.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40204