public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/49997] New: ICE in inline_small_functions with -fnon-call-exceptions
@ 2011-08-05 21:55 arthur.j.odwyer at gmail dot com
  2011-08-08  9:44 ` [Bug tree-optimization/49997] [4.7 Regression] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: arthur.j.odwyer at gmail dot com @ 2011-08-05 21:55 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-12-06 13:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05 21:55 [Bug tree-optimization/49997] New: ICE in inline_small_functions with -fnon-call-exceptions arthur.j.odwyer at gmail dot com
2011-08-08  9:44 ` [Bug tree-optimization/49997] [4.7 Regression] " rguenth at gcc dot gnu.org
2011-09-06 14:06 ` hubicka at gcc dot gnu.org
2011-09-06 15:49 ` rguenth at gcc dot gnu.org
2011-09-09  9:06 ` hubicka at ucw dot cz
2011-09-11 10:06 ` hubicka at ucw dot cz
2011-10-10 12:13 ` rguenth at gcc dot gnu.org
2011-12-06 13:45 ` rguenth at gcc dot gnu.org
2011-12-06 13:46 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).