Fix the use of -fno-approx-func along with -Ofast or -ffast-math
authorMasoud Ataei <msd.ataei@gmail.com>
Wed, 19 Jan 2022 16:05:08 +0000 (08:05 -0800)
committerMasoud Ataei <msd.ataei@gmail.com>
Wed, 19 Jan 2022 16:05:08 +0000 (08:05 -0800)
commitd261660af96d402689d025b4584e925869a9b413
tree850c3bfedb6732de49f66085fdccc3549cb132a0
parent14a793ab0589de48511455038f63f28ff2506d48
Fix the use of -fno-approx-func along with -Ofast or -ffast-math

Fix how -fapprox-func interact correctly with the other floating point options.
Reported bug Number 52565: https://bugs.llvm.org/show_bug.cgi?id=52565

Differential: https://reviews.llvm.org/D114564
Reviewer: @andrew.w.kaylor
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/fast-math.c
clang/test/Preprocessor/aarch64-target-features.c
clang/test/Preprocessor/arm-target-features.c