https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108329
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |13.0
Depends on| |34678
Keywords| |wrong-code
Blocks| |105105
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
As long as PR 36678 is not fixed, I see one possible solution in
putting a memory barrier after ieee_set_rounding_mode.
This is a rather big hammer, but as long as the middle-end issue
is not fixed, I do not see an alternative.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678
[Bug 34678] Optimization generates incorrect code with -frounding-math option
(#pragma STDC FENV_ACCESS not implemented)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105105
[Bug 105105] [Meta] Fortran IEEE support