https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68384
--- Comment #5 from acsawdey at gcc dot gnu.org --- The partitioning seems to be involved. If you add -flto-partition=max, you can get past the global register error. However 230270 that I've been using for testing then hits a recursive inlining error that looks a lot like 59626 when trying to compile all of PHP 7. However gcc 5.2 is able to compile the whole thing using -flto-partition=max. I think I need to update my trunk build and then see if the recursive inlining error persists.