Tracker bug for GCC PR81443. gcc-7.1.0 cannot compile on, at least, a 64-bit MIPS platform, MIPS-III ISA, big-endian architecture, N32 ABI, glibc-userland. It will fail some way through the build on the file "build/genrecog.o" with the error "virtual memory exhausted: Cannot allocate memory". Other ISAs not tested yet. O32 ABI seems unaffected, as gcc-7.1.0 could be built in both a glibc-based O32 userland and a uclibc-ng-1.0.25-based userland. Unable to test N64 at the moment.
Fixed in 7.3.0+.