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 tree-optimization/49997] New: ICE in inline_small_functions with -fnon-call-exceptions


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

           Summary: ICE in inline_small_functions with
                    -fnon-call-exceptions
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arthur.j.odwyer@gmail.com


Created attachment 24928
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24928
Output of "ajo-gcc -w -O2 -finline-functions -fnon-call-exceptions -c test.c
-v"

This failure reproduces for me with svn revision 177466 (2011-08-05), going
back at least as far as 2011-08-02. I'm on Ubuntu 10.10, x86-64.

cat >test.c <<EOF
extern int g_78, g_223;
static int MOD(int si1, int si2) {
  return (!si2 || (!si1 && si2)) ? si1 : (si1 % 3);
}
void func_65(int p_66) {
    g_78 = MOD(p_66, 3);
}
void func_54(int si1) {
    func_65(0);
    func_65(1);
    func_65(2);
    while (g_223) {
        MOD(si1, 3);
        func_65(3);
        func_65(4);
        func_65(5);
        func_65(6);
        func_65(7);
        func_65(8);
    }
}
EOF
gcc -w -O2 -finline-functions -fnon-call-exceptions -c test.c

test.c:21:1: internal compiler error: in inline_small_functions, at
ipa-inline.c:1405


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


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