This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84190] [7/8 Regression] double arithmetic on x86 no longer rounds to nearest
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Feb 2018 15:54:59 +0000
- Subject: [Bug c/84190] [7/8 Regression] double arithmetic on x86 no longer rounds to nearest
- Auto-submitted: auto-generated
- References: <bug-84190-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84190
--- Comment #11 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
It's not technically required (at least for this issue and as regards C
standards conformance) simply because options such as -std=c99 / -std=c11
imply -fexcess-precision=standard, so meaning it doesn't make any visible
difference whether those accesses are treated as volatile or not.
It may still make sense to treat these as volatile accesses (and so force
the values to memory, in such a case of a local variable being accessed
through a pointer-to-volatile), to accord with user expectations when
using volatile.