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

             Bug #: 51725
           Summary: [4.7 regression] segfault in stage 3 when compiling
                    gcc/opts.c for sparc64-linux
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: mi...@it.uu.se


Created attachment 26212
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26212
preprocessed source

Bootstrapping gcc-4.7-20111231 on sparc64-linux fails with:

/mnt/scratch/objdir/./prev-gcc/xgcc -B/mnt/scratch/objdir/./prev-gcc/
-B/mnt/scratch/install47/sparc64-unknown-linux-gnu/bin/
-B/mnt/scratch/install47/sparc64-unknown-linux-gnu/bin/
-B/mnt/scratch/install47/sparc64-unknown-linux-gnu/lib/ -isystem
/mnt/scratch/install47/sparc64-unknown-linux-gnu/include -isystem
/mnt/scratch/install47/sparc64-unknown-linux-gnu/sys-include    -c   -g -O2
-DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I.
-I/mnt/scratch/gcc-4.7-20111231/gcc -I/mnt/scratch/gcc-4.7-20111231/gcc/.
-I/mnt/scratch/gcc-4.7-20111231/gcc/../include
-I/mnt/scratch/gcc-4.7-20111231/gcc/../libcpp/include
-I/home/mikpe/pkgs/linux-sparc64/gmp-5.0.2/include
-I/home/mikpe/pkgs/linux-sparc64/mpfr-3.1.0/include
-I/home/mikpe/pkgs/linux-sparc64/mpc-0.9/include 
-I/mnt/scratch/gcc-4.7-20111231/gcc/../libdecnumber
-I/mnt/scratch/gcc-4.7-20111231/gcc/../libdecnumber/dpd -I../libdecnumber   
/mnt/scratch/gcc-4.7-20111231/gcc/opts.c -o opts.o
/mnt/scratch/gcc-4.7-20111231/gcc/opts.c: In function 'common_handle_option':
/mnt/scratch/gcc-4.7-20111231/gcc/opts.c:1751:1: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [opts.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm cpp.pod gfdl.pod gcov.pod fsf-funding.pod gcc.pod
make[3]: Leaving directory `/mnt/scratch/objdir/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/mnt/scratch/objdir'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/mnt/scratch/objdir'
make: *** [bootstrap] Error 2

This is a regression since gcc-4.7-20111224 which bootstrapped fine.

The ICE is reproducible with a cross to sparc-linux hosted on i686-linux.

Reply via email to