This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/40204] [4.3/4.4/4.5 Regression] segfault with bitfields in structs



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]