[clang] Disable FTZ/DAZ when compiling shared libraries by default. (PR #80475)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 9 14:32:59 PST 2024
================
@@ -1569,6 +1569,40 @@
// RUN: --gcc-toolchain="" \
// RUN: --sysroot=%S/Inputs/basic_linux_tree 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NOCRTFASTMATH %s
+// Don't link crtfastmath.o with -shared
+// RUN: %clang --target=x86_64-unknown-linux -no-pie -### %s -ffast-math -shared \
+// RUN: --gcc-toolchain="" \
----------------
andykaylor wrote:
Do we have trouble with this test on systems where crtfastmath.o is not provided by the gcc toolchain? I don't think we provide our own version of this, do we?
https://github.com/llvm/llvm-project/pull/80475
More information about the cfe-commits
mailing list