https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95952
Bug ID: 95952 Summary: [8.4.1 regression] gcc-8 bootstrap failure on powerpc64-linux Product: gcc Version: 8.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Attempting to bootstrap gcc-8-20200625 on powerpc64-linux-gnu fails with an ICE: /mnt/scratch/objdir8/./gcc/xgcc -B/mnt/scratch/objdir8/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=/mnt/scratch/gcc-8-20200625/gcc/testsuite/selftests <built-in>: internal compiler error: in altivec_init_builtins, at config/rs6000/rs6000.c:18021 0x10d8cd8f altivec_init_builtins /mnt/scratch/gcc-8-20200625/gcc/config/rs6000/rs6000.c:18021 0x10d8ae87 rs6000_init_builtins /mnt/scratch/gcc-8-20200625/gcc/config/rs6000/rs6000.c:17458 0x100f135b c_define_builtins /mnt/scratch/gcc-8-20200625/gcc/c-family/c-common.c:3930 0x100f34d3 c_common_nodes_and_builtins() /mnt/scratch/gcc-8-20200625/gcc/c-family/c-common.c:4400 0x1002147b c_init_decl_processing(/mnt/scratch/objdir8/./gcc/xgcc -B/mnt/scratch/objdir8/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=/mnt/scratch/gcc-8-20200625/gcc/testsuite/selftests <built-in>: internal compiler error: in altivec_init_builtins, at config/rs6000/rs6000.c:18021 0x10d8cd8f altivec_init_builtins /mnt/scratch/gcc-8-20200625/gcc/config/rs6000/rs6000.c:18021 0x10d8ae87 rs6000_init_builtins /mnt/scratch/gcc-8-20200625/gcc/config/rs6000/rs6000.c:17458 0x100f135b c_define_builtins /mnt/scratch/gcc-8-20200625/gcc/c-family/c-common.c:3930 0x100f34d3 c_common_nodes_and_builtins() /mnt/scratch/gcc-8-20200625/gcc/c-family/c-common.c:4400 0x1002147b c_init_decl_processing() /mnt/scratch/gcc-8-20200625/gcc/c/c-decl.c:4189 0x10077677 c_objc_common_init() /mnt/scratch/gcc-8-20200625/gcc/c/c-objc-common.c:59 0x108ab4ab lang_dependent_init /mnt/scratch/gcc-8-20200625/gcc/toplev.c:1892 0x108abdc3 do_compile /mnt/scratch/gcc-8-20200625/gcc/toplev.c:2146 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make[3]: *** [s-selftest-c] Error 1 make[3]: Leaving directory `/mnt/scratch/objdir8/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/mnt/scratch/objdir8' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/mnt/scratch/objdir8' make: *** [bootstrap] Error 2) /mnt/scratch/gcc-8-20200625/gcc/c/c-decl.c:4189 0x10077677 c_objc_common_init() /mnt/scratch/gcc-8-20200625/gcc/c/c-objc-common.c:59 0x108ab4ab lang_dependent_init /mnt/scratch/gcc-8-20200625/gcc/toplev.c:1892 0x108abdc3 do_compile /mnt/scratch/gcc-8-20200625/gcc/toplev.c:2146 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make[3]: *** [s-selftest-c] Error 1 make[3]: Leaving directory `/mnt/scratch/objdir8/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/mnt/scratch/objdir8' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/mnt/scratch/objdir8' make: *** [bootstrap] Error 2 The ICE is the following assert failing: /* Cannot define builtin if the instruction is disabled. */ gcc_assert (d->icode != CODE_FOR_nothing); Recent snapshots of gcc-9/10/11 all bootstrap fine, as did earlier gcc-8 snapshots. A bisection identified the following as the culprit: >From 09f2293fac1785681f8ceaf6ae6d2d5cfe519b08 Mon Sep 17 00:00:00 2001 From: Will Schmidt <will_schm...@vnet.ibm.com> Date: Tue, 7 Apr 2020 16:32:39 -0500 Subject: [PATCH] rs6000 pragma fix backport from mainline to gcc-8 Reverting that commit from current head of gcc-8 allows it to bootstrap again. Configuration parameters: /mnt/scratch/gcc-8-20200625/configure --prefix=/mnt/scratch/install8 --with-gmp=/home/mikpe/pkgs/linux-ppc64/gmp-6.2.0 --with-mpfr=/home/mikpe/pkgs/linux-ppc64/mpfr-4.0.2 --with-mpc=/home/mikpe/pkgs/linux-ppc64/mpc-1.1.0 --without-isl --disable-plugin --disable-lto --disable-nls --enable-threads=posix --with-cpu=default32 --enable-checking=release --disable-libmudflap --enable-linker-build-id --enable-languages=c,ada,c++