https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104800
--- Comment #20 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 14 Apr 2025, uecker at gcc dot gnu.org wrote: > 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. Given C++ abandoned 'volatile' I would rather suggest to document better ways of achieving that and if existing ways are too cumbersome we should see a way to do this without altering behavior on 'volatile' that has been in use for 50 years.