https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77346
--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> --- (In reply to Aldy Hernandez from comment #1) > I cannot reproduce this on a cross build from x86-64 Linux to > --target=powerpc-*-linux-gnu. I cannot reproduce on neither mainline nor 2 > months back on mainline. > > Does this problem still exist in the latest mainline? For me, yes: % powerpc-e300c3-linux-gnu-gcc-7.0.0-alpha20161106 -mno-lra -Os -c -w buwdtjav.c buwdtjav.c: In function 'hx': buwdtjav.c:25:1: internal compiler error: in push_reload, at reload.c:1344 } ^ 0x30331d906a3 push_reload(rtx_def*, rtx_def*, rtx_def**, rtx_def**, reg_class, machine_mode, machine_mode, int, int, int, reload_type) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-7.0.0_alpha20161106/work/gcc-7-20161106/gcc/reload.c:1343 0x30331d96acb find_reloads(rtx_insn*, int, int, int, short*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-7.0.0_alpha20161106/work/gcc-7-20161106/gcc/reload.c:4027 0x30331da8854 calculate_needs_all_insns /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-7.0.0_alpha20161106/work/gcc-7-20161106/gcc/reload1.c:1474 0x30331da8854 reload(rtx_insn*, int) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-7.0.0_alpha20161106/work/gcc-7-20161106/gcc/reload1.c:988 0x30331c2dd6e do_reload /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-7.0.0_alpha20161106/work/gcc-7-20161106/gcc/ira.c:5386 0x30331c2dd6e execute /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-7.0.0_alpha20161106/work/gcc-7-20161106/gcc/ira.c:5558 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. But maybe you also need -fno-PIC -fno-stack-protector? % powerpc-e300c3-linux-gnu-gcc-7.0.0-alpha20161106 -mno-lra -Os -fPIC -fstack-protector -c -w buwdtjav.c % echo $? 0 % powerpc-e300c3-linux-gnu-gcc-7.0.0-alpha20161106 -v Using built-in specs. COLLECT_GCC=powerpc-e300c3-linux-gnu-gcc-7.0.0-alpha20161106 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-e300c3-linux-gnu/7.0.0-alpha20161106/lto-wrapper Target: powerpc-e300c3-linux-gnu Configured with: /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-7.0.0_alpha20161106/work/gcc-7-20161106/configure --host=x86_64-pc-linux-gnu --target=powerpc-e300c3-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/powerpc-e300c3-linux-gnu/gcc-bin/7.0.0-alpha20161106 --includedir=/usr/lib/gcc/powerpc-e300c3-linux-gnu/7.0.0-alpha20161106/include --datadir=/usr/share/gcc-data/powerpc-e300c3-linux-gnu/7.0.0-alpha20161106 --mandir=/usr/share/gcc-data/powerpc-e300c3-linux-gnu/7.0.0-alpha20161106/man --infodir=/usr/share/gcc-data/powerpc-e300c3-linux-gnu/7.0.0-alpha20161106/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-e300c3-linux-gnu/7.0.0-alpha20161106/include/g++-v7 --with-python-dir=/share/gcc-data/powerpc-e300c3-linux-gnu/7.0.0-alpha20161106/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --enable-checking=yes --disable-esp --enable-libstdcxx-time --enable-poison-system-directories --with-sysroot=/usr/powerpc-e300c3-linux-gnu --disable-bootstrap --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --disable-vtable-verify --disable-libvtv --disable-libquadmath --enable-lto --with-isl --disable-isl-version-check --disable-libsanitizer Thread model: posix gcc version 7.0.0-alpha20161106 20161106 (experimental) (GCC)