[Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 9 10:50:27 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|x86_64-*-*, i?86-*-* |x86_64-*-*, i?86-*-*,
| |aarch64, alpha, arm, ia64,
| |loongarch, mips, sparc
Keywords| |documentation
--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
I'll note that I can't find any documentation for this link-time behavior which
triggers for -Ofast, -ffast-math and -funsafe-math-optimizations but also
with -ffast-math -fno-unsafe-math-optimizations.
I've adjusted the list of affected targets. What their crtfastmath.o actually
does would need to be determined, but it for sure will have the same spreading
effect.
More information about the Gcc-bugs
mailing list