From: Brendon Cahoon Date: Wed, 12 Sep 2018 20:35:56 +0000 (+0000) Subject: [Hexagon] Remove fp-contract=fast setting for at O3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b335cfaae053bbe6d32863820847c9a15658111;p=clang [Hexagon] Remove fp-contract=fast setting for at O3 Change Hexagon so that the setting for fp-contract is the default setting. This makes Hexagon consistent with all other targets. Differential Revision: https://reviews.llvm.org/D49999 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains/Hexagon.cpp b/lib/Driver/ToolChains/Hexagon.cpp index c2b27b6d9a..778852ffc5 100644 --- a/lib/Driver/ToolChains/Hexagon.cpp +++ b/lib/Driver/ToolChains/Hexagon.cpp @@ -513,11 +513,6 @@ unsigned HexagonToolChain::getOptimizationLevel( void HexagonToolChain::addClangTargetOptions(const ArgList &DriverArgs, ArgStringList &CC1Args, Action::OffloadKind) const { - if (!DriverArgs.hasArg(options::OPT_ffp_contract)) { - unsigned OptLevel = getOptimizationLevel(DriverArgs); - if (OptLevel >= 3) - CC1Args.push_back("-ffp-contract=fast"); - } if (DriverArgs.hasArg(options::OPT_ffixed_r19)) { CC1Args.push_back("-target-feature"); CC1Args.push_back("+reserved-r19"); diff --git a/test/Driver/hexagon-toolchain-elf.c b/test/Driver/hexagon-toolchain-elf.c index 8f4c320ce4..a15c0f3434 100644 --- a/test/Driver/hexagon-toolchain-elf.c +++ b/test/Driver/hexagon-toolchain-elf.c @@ -110,7 +110,7 @@ // RUN: -O3 \ // RUN: %s 2>&1 \ // RUN: | FileCheck -check-prefix=CHECK026 %s -// CHECK026: "-ffp-contract=fast" +// CHECK026-NOT: "-ffp-contract=fast" // CHECK026: hexagon-link // RUN: %clang -### -target hexagon-unknown-elf \