OSDN Git Service

[clang][cli] Remove -f[no-]trapping-math from -cc1 command line
authorJan Svoboda <jan_svoboda@apple.com>
Tue, 12 Jan 2021 08:09:06 +0000 (09:09 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Tue, 12 Jan 2021 09:00:23 +0000 (10:00 +0100)
commit7ab803095ae58445996dc4694acb216e3a32ee64
treeae095f28f635490ff6854c5498f5f261feaae118
parent6a195491b6028185c7278718ac21bca309a6c4ea
[clang][cli] Remove -f[no-]trapping-math from -cc1 command line

This patch removes the -f[no-]trapping-math flags from the -cc1 command line. These flags are ignored in the command line parser and their semantics is fully handled by -ffp-exception-mode.

This patch does not remove -f[no-]trapping-math from the driver command line. The driver flags are being used and do affect compilation.

Reviewed By: dexonsmith, SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D93395
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/fpconstrained.c
clang/test/CodeGen/fpconstrained.cpp
clang/test/CodeGen/noexceptionsfpmath.c
clang/test/CodeGenCUDA/propagate-metadata.cu
clang/test/Driver/fast-math.c
clang/test/Driver/fp-model.c
clang/test/Parser/fp-floatcontrol-syntax.cpp