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

             Bug #: 51787
           Summary: [4.7.0 Regression] internal compiler error: in
                    inline_small_functions, at ipa-inline.c:1410
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: dougmenc...@gmail.com


I'm trying to get GCC 4.7. Latest weekly snapshot done Dec 31, 2011
(gcc-v4.7-20111231) fails to bootstrap on stage2:

/root/build-farm/_gcc_bootstrap/./prev-gcc/g++
-B/root/build-farm/_gcc_bootstrap/./prev-gcc/
-B/usr/powerpc-gnu-linux-uclibc/bin/ -nostdinc++
-B/root/build-farm/_gcc_bootstrap/prev-powerpc-gnu-linux-uclibc/libstdc++-v3/src/.libs
-B/root/build-farm/_gcc_bootstrap/prev-powerpc-gnu-linux-uclibc/libstdc++-v3/libsupc++/.libs
-I/root/build-farm/_gcc_bootstrap/prev-powerpc-gnu-linux-uclibc/libstdc++-v3/include/powerpc-gnu-linux-uclibc
-I/root/build-farm/_gcc_bootstrap/prev-powerpc-gnu-linux-uclibc/libstdc++-v3/include
-I/root/build-farm/gcc-v4.7-20111231.sourcedir/libstdc++-v3/libsupc++
-L/root/build-farm/_gcc_bootstrap/prev-powerpc-gnu-linux-uclibc/libstdc++-v3/src/.libs
-L/root/build-farm/_gcc_bootstrap/prev-powerpc-gnu-linux-uclibc/libstdc++-v3/libsupc++/.libs
-c   -O3 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I.
-I../../gcc-v4.7-20111231.sourcedir/gcc
-I../../gcc-v4.7-20111231.sourcedir/gcc/.
-I../../gcc-v4.7-20111231.sourcedir/gcc/../include
-I../../gcc-v4.7-20111231.sourcedir/gcc/../libcpp/include 
-I../../gcc-v4.7-20111231.sourcedir/gcc/../libdecnumber
-I../../gcc-v4.7-20111231.sourcedir/gcc/../libdecnumber/dpd -I../libdecnumber  
 ../../gcc-v4.7-20111231.sourcedir/gcc/cgraph.c -o cgraph.o
In file included from ../../gcc-v4.7-20111231.sourcedir/gcc/cgraph.c:3060:0:
./gt-cgraph.h:66:2: internal compiler error: in inline_small_functions, at
ipa-inline.c:1410
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [cgraph.o] Error 1
make[3]: Leaving directory `/root/build-farm/_gcc_bootstrap/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/root/build-farm/_gcc_bootstrap'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/root/build-farm/_gcc_bootstrap'
make: *** [all] Error 2
ERROR: stage2 bootstrap error. Abort.

I'm building everything with -O3.

Configure line:

../gcc-v4.7-20111231.sourcedir/configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man --build=powerpc-gnu-linux-uclibc
--host=powerpc-gnu-linux-uclibc --target=powerpc-gnu-linux-uclibc
--enable-languages=c,c++,fortran,java --enable-stage1-languages=c,c++,fortran
--with-cpu=default32 --enable-threads=posix --with-system-zlib
--with-libiconv-prefix=/usr --without-included-gettext --disable-nls
--disable-werror --disable-multilib --disable-libssp --disable-__cxa_atexit
--enable-shared --without-gjdoc --enable-libgcj --enable-libgcj-multifile
--enable-interpreter --disable-libjava-multilib --disable-browser-plugin
--enable-checking=release

stage0's gcc -v:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.6.1/lto-wrapper
Target: powerpc-gnu-linux-uclibc
Configured with: ../gcc-v4.6.1.sourcedir/configure --prefix=/usr
--sysconfdir=/etc --mandir=/usr/share/man --build=powerpc-gnu-linux-uclibc
--host=powerpc-gnu-linux-uclibc --target=powerpc-gnu-linux-uclibc
--enable-languages=c,c++,fortran,java --with-cpu=default32
--enable-threads=posix --with-system-zlib --with-libiconv-prefix=/usr
--disable-nls --disable-werror --disable-multilib --disable-libssp
--disable-__cxa_atexit --disable-checking --enable-shared --without-gjdoc
--enable-libgcj --enable-libgcj-multifile --enable-interpreter
--disable-libjava-multilib --disable-browser-plugin
Thread model: posix
gcc version 4.6.1 (GCC) 

cgraph.ii is attached.

Lines 1399-1416 from ipa-inline.c:

1399:      /* Be sure that caches are maintained consistent.  
1400:         We can not make this ENABLE_CHECKING only because it cause
differnt
1401:         updates of the fibheap queue.  */
1402:      cached_badness = edge_badness (edge, false);
1403:      reset_edge_growth_cache (edge);
1404:      reset_node_growth_cache (edge->callee);
1405:
1406:      /* When updating the edge costs, we only decrease badness in the
keys.
1407:         Increases of badness are handled lazilly; when we see key with
out
1408:         of date value on it, we re-insert it now.  */
1409:      current_badness = edge_badness (edge, false);
1410:>>>>  gcc_assert (cached_badness == current_badness);
1411:      gcc_assert (current_badness >= badness);
1412:      if (current_badness != badness)
1413:        {
1414:          edge->aux = fibheap_insert (heap, current_badness, edge);
1415:          continue;
1416:        }

Reply via email to