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 rtl-optimization/49619] New: ICE in simplify_subreg, at simplify-rtx.c:5362


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49619

           Summary: ICE in simplify_subreg, at simplify-rtx.c:5362
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arthur.j.odwyer@gmail.com


Created attachment 24663
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24663
Output of "ajo-gcc -O1 -fno-tree-fre -c test.c -v"

This failure reproduces for me with svn revision 175547
(2011-06-27), and also with GCC 4.5.1, but not with 4.4.5. I'm on Ubuntu 10.10,
x86-64.

cat >test.c <<EOF
extern int g_27, g_115;
void func_1(int x) {
    g_27 = 2; g_115 = 0;
    g_115 = (g_27 && ((g_27 = 1, 0 >= g_115) || (short)(x + (g_115 & x))));
}
EOF
gcc -O1 -fno-tree-fre -c test.c

test.c: In function âfunc_1â:
test.c:5:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5362

GCC 4.5.1 also ICEs on this input. The line number in 4.5.1 is
simplify-rtx.c:5140.


This test case is reduced from the output of Csmith 2.1.0 (git hash 01aa8b04,
https://github.com/Quuxplusone/csmith/), using the following command line:
csmith --no-paranoid --longlong --no-pointers --no-arrays --no-jumps
--no-consts --no-volatiles --checksum --no-divs --no-muls --bitfields
--packed-struct -s 1343472353


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