https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104800
--- Comment #19 from uecker at gcc dot gnu.org --- We could add an optional flag and see? There are also many users who would like to have this as they use volatile to suppress unwanted code motion.