https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87836
--- Comment #12 from Gary Mills <gary_mills at fastmail dot fm> --- Just in case it was the C++ compiler that was mis-compiling the intermediate gcc compiler, I did a build with both CFLAGS and CXXFLAGS set to '-g -O0'. Again, I got the same ICE. With that, I suppose we can rule out a mis-compilation of the intermediate compiler. The ICE seems to be real! The curious thing is that gcc/xgcc seems to work correctly for building all of the gcc-7 source. It's only during the configuration tests that the ICE appears. At that time, it's compiling trivial source files. I'm wondering if the cause could be faulty code that only misbehaves with a trivial source file. How do I investigate further? The other curious thing is that gcc-7 builds correctly on x86 hardware. The ICE only appears on SPARC hardware. How do I investigate further?