https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66903
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You are most likely overflowing the stack. That is the stack is growing and hitting the stack size. The default stack size for Linux is 8MB, try using "ulimit -s unlimited" before running gcc.