https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64181
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > Seems to be fixed in GCC 10+. It looks like GCC is handling volatile more > correctly now. Note I could only get the original testcase to show the issue not the others ones.