4 ms·
GCC does with the infamous -ffast-math as well.
by account42 24d ago
GCC does with the infamous -ffast-math as well.
- gpderetta 24d agoIIRC that has been since split out of the flag and need to be asked for separately at link time.
- jcranmer 24d agoIf you use -ffast-math when linking an executable but not a shared library, both gcc and clang will link in crtfastmath.o which has the bit of code to set the DAZ/FTZ flags.
- deleted 23d ago[deleted]
- gpderetta 23d agoright, but the issue was that if an application was linked with a library that happened to link with a fast-math shared library, it would unknowingly bring along the crt code. Now the only way to get it is to use the fast-math flag when linking the final binary, which at least is an explicit request.