# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/clang/no-unsafe-Ofast-math.patch # Copyright (C) 2023 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- --- clang-19.1.0.src/lib/Driver/ToolChain.cpp.vanilla 2024-09-30 21:23:42.454088046 +0200 +++ clang-19.1.0.src/lib/Driver/ToolChain.cpp 2024-09-30 21:23:12.394087508 +0200 @@ -1325,7 +1325,7 @@ // Do not check for -fno-fast-math or -fno-unsafe-math when -Ofast passed // (to keep the linker options consistent with gcc and clang itself). - if (Default && !isOptimizationLevelFast(Args)) { + if (Default /*&& !isOptimizationLevelFast(Args)*/) { // Check if -ffast-math or -funsafe-math. Arg *A = Args.getLastArg( options::OPT_ffast_math, options::OPT_fno_fast_math,