https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78695
--- Comment #5 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Also does not reproduce with a debug compiler at r243219: wschmidt@genoa:~/src$ $GCC_INSTALL/bin/gcc -S -O3 pr78695.c wschmidt@genoa:~/src$ $GCC_INSTALL/bin/gcc -v Using built-in specs. COLLECT_GCC=/home/wschmidt/gcc/install/gcc-mainline-test-debug/bin/gcc COLLECT_LTO_WRAPPER=/home/wschmidt/gcc/install/gcc-mainline-test-debug/libexec/gcc/powerpc64le-unknown-linux-gnu/7.0.0/lto-wrapper Target: powerpc64le-unknown-linux-gnu Configured with: /home/wschmidt/gcc/gcc-mainline-test/configure --enable-languages=c,c++ --with-cpu=power8 --disable-multilib --with-long-double-128 --prefix=/home/wschmidt/gcc/install/gcc-mainline-test-debug --disable-bootstrap Thread model: posix gcc version 7.0.0 20161203 (experimental) [trunk revision 243219] (GCC) I will try a bootstrap compiler. Can you please post your configuration, and any possible local modifications? This looks like something that is very sensitive to middle-end optimization, so small changes can make the problem disappear.