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

             Bug #: 51263
           Summary: ICE in inline_small_functions when compiling scummvm
                    with -O2 -flto
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: m...@use.net


With current trunk, compiling scummvm 1.4.0
(http://prdownloads.sourceforge.net/scummvm/scummvm-1.4.0.tar.bz2?download):

$ CXXFLAGS="-O2 -flto" CFLAGS="-O2 -flto" ./configure --enable-all-engines

Running ScummVM configure...
[...]

$ make

[...]

engines/parallaction/balloons.cpp:756:1: internal compiler error: in
inline_small_functions, at ipa-inline.c:1421

with -j7, this one happens first, but is likely the same root issue:

In file included from video/smk_decoder.cpp:37:0:
./audio/audiostream.h:303:7: internal compiler error: in
inline_small_functions, at ipa-inline.c:1421

I tried reproducing with just -O1 -finline-small-functions, but that didn't
trip the issue.

Pre-processed source file attached, reproduce by:
bunzip2 balloons.i.bz2
g++ -O2 balloons.i

Reply via email to