When I bootstrap gcc with the commands given below I get a testsuite failure
in libstdc++-v3/testsuite/25_algorithms/rotate/1.cc
It might be a pch problem, since that ice does not occur if I compile the
testsuite file without using any library

Michael Cieslinski


Command to build and test gcc:

export CFLAGS="-O3 --param max-unswitch-insns=1000 \
 --param max-unswitch-level=4 --param max-aliased-vops=10000"

export CXXFLAGS=$CFLAGS

../gcc-4.2-20060930/configure --prefix=/usr/local/gcc42d --program-suffix=42d \
 --with-arch=opteron --enable-languages=c,c++ --enable-__cxa_atexit \
 --disable-nls --enable-threads=posix --disable-multilib --enable-checking

make -j4 bootstrap

make check -j -k


output in libstdc++.log:

Executing on host: /srv/cie019/gcc/gcc42d/obj/./gcc/g++ -shared-libgcc
 -B/srv/cie019/gcc/gcc42d/obj/./gcc -nostdinc++
 -L/srv/cie019/gcc/gcc42d/obj/x86_64-unknown-linux-gnu/libstdc++-v3/src
 -L/srv/cie019/gcc/gcc42d/obj/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
 -B/usr/local/gcc42d/x86_64-unknown-linux-gnu/bin/
 -B/usr/local/gcc42d/x86_64-unknown-linux-gnu/lib/
 -isystem /usr/local/gcc42d/x86_64-unknown-linux-gnu/include
 -isystem /usr/local/gcc42d/x86_64-unknown-linux-gnu/sys-include
 -g -O2 -D_GLIBCXX_ASSERT -ffunction-sections -fdata-sections
 -fmessage-length=0 -O3 --param max-unswitch-insns=1000
 --param max-unswitch-level=4 --param max-aliased-vops=10000
 -D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
 -I/srv/cie019/gcc/gcc42d/obj/x86_64-unknown-linux-gnu/
                 libstdc++-v3/include/x86_64-unknown-linux-gnu
 -I/srv/cie019/gcc/gcc42d/obj/x86_64-unknown-linux-gnu/libstdc++-v3/include
 -I/srv/cie019/gcc/gcc42d/gcc-4.2-20060930/libstdc++-v3/libsupc++
 -I/srv/cie019/gcc/gcc42d/gcc-4.2-20060930/libstdc++-v3/include/backward
 -I/srv/cie019/gcc/gcc42d/gcc-4.2-20060930/libstdc++-v3/testsuite/util
  testsuite_abi.o testsuite_allocator.o testsuite_character.o
  testsuite_hooks.o twister_rand_gen.o verified_cmd_line_input.o
  prog_bar.o elapsed_timer.o
 /srv/cie019/gcc/gcc42d/gcc-4.2-20060930/libstdc++-v3/
                testsuite/25_algorithms/rotate/1.cc
 -include bits/stdc++.h  -lm   -o ./1.exe    (timeout = 600)

/srv/cie019/gcc/gcc42d/obj/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:
In function 'void std::__rotate(_RandomAccessIterator, _RandomAccessIterator,
_RandomAccessIterator, std::random_access_iterator_tag) [with
_RandomAccessIterator = __gnu_test::random_access_iterator_wrapper<int>]':
/srv/cie019/gcc/gcc42d/obj/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_algo.h:1833:
internal compiler error: in compare_name_with_value, at tree-vrp.c:3561
Please submit a full bug report, with preprocessed source if appropriate.


-- 
           Summary: ICE: testsuite failure with max-unswitch-insns=1000 max-
                    unswitch-level=4 max-aliased-vops=10000
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: pch
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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

Reply via email to