https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68718
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #4) > omp_set/unset_lock of course is a memory barrier. It is _not_ for the stack-local in main (which IPA PTA exposes).