https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84190
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- You need to use -fexcess-precision=standard (or -msse2 -mfpmath=sse) for predictable results from double arithmetic on 32-bit x86. If you do that, do you still see such a problem? If not, this is just a duplicate of bug 323 (and what's a volatile access is irrelevant).