https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79876
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- stack size (kbytes, -s) 65532 is 64M, that should be more than enough. Of course unless darwin pthread_create does something dumb, like using far smaller stack sizes for threads by default. In that case, the question is if we shouldn't override that on darwin to something larger, or just use ! { dg-set-target-env-var OMP_STACKSIZE "8M" } on the test. Note that dg-set-target-env-var doesn't (yet?) support target specification as 3rd argument, so I'd prefer not to add that. Or we could add -finline-matmul-limit=64 or whatever works.