4 ms·
-ffast-math affects other translation units too, because it introduces a global initialization that affects some CPU flags. You can't really contain it to a sin
by leni536 2y ago
-ffast-math affects other translation units too, because it introduces a global initialization that affects some CPU flags. You can't really contain it to a single TU.
- senkora 2y agoIt seems like this depends on whether you specify -ffast-math when linking or only when compiling: https://stackoverflow.com/a/68938551 https://stackoverflow.com/a/68938551 My understanding is that if you don't specify -ffast-math when linking then you shouldn't get crtfastmath.o linked in.
- adgjlsfhk1 2y agoso this is complicated by the fact that GCC has a bug until last year where it would set the subnormal truncation flag when it wasn't supposed to.