https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30733
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- This PR has been filed almost twelve years ago without any feedback for almost ten years. It is very unlikely that this missed optimization exists in real code. In addition I think this optimization is the user's responsibility and not of the compiler: using VOLATILE in a hot spot does not make sense for me. I am closing as WONTFIX, if the problem occurs in a real code, the user will open a new PR with an actual test.