http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I still believe it is not needed to slow down the runtime library with checks for invalid programs. Negative num_threads is undefined behavior, just don't do it.