[Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared

brendandg at nyu dot edu gcc-bugzilla@gcc.gnu.org
Wed Sep 14 17:03:39 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522

--- Comment #22 from Brendan Dolan-Gavitt <brendandg at nyu dot edu> ---
I think loading shared libraries from within threads is actually pretty common
when shared libs are used as plugins for some GUI app. I made a graph of the
reverse dependencies of Debian packages that contain shared libraries linking
to crtfastmath.o, and you can see that most of them are related to A/V plugins
(e.g. the largest cluster is from gstreamer-plugins-bad):

https://moyix.net/~moyix/ffast_debian.pdf

Granted, I think you could argue in this case that only affecting the thread
that loaded the plugin is the *intended* behavior.


More information about the Gcc-bugs mailing list