]> granicus.if.org Git - clang/commitdiff
Revert "[Driver] Make sure -fno-math-builtin option is being passed by the driver."
authorChad Rosier <mcrosier@codeaurora.org>
Tue, 26 Jan 2016 16:16:53 +0000 (16:16 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Tue, 26 Jan 2016 16:16:53 +0000 (16:16 +0000)
This reverts commit r258814.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258815 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/CodeGen/nomathbuiltin.c
test/Driver/clang_f_opts.c

index a53319202f3387d40971165926c4d23b43d5e7b7..faec8a1c3f8f179ca88afd5eb335ad1666c10de4 100644 (file)
@@ -5465,13 +5465,12 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
                    options::OPT_fno_apple_pragma_pack, false))
     CmdArgs.push_back("-fapple-pragma-pack");
 
-  // Process -fno-math-builtin options.
   // le32-specific flags:
   //  -fno-math-builtin: clang should not convert math builtins to intrinsics
   //                     by default.
-  if (Args.hasArg(options::OPT_fno_math_builtin) ||
-      getToolChain().getArch() == llvm::Triple::le32)
+  if (getToolChain().getArch() == llvm::Triple::le32) {
     CmdArgs.push_back("-fno-math-builtin");
+  }
 
 // Default to -fno-builtin-str{cat,cpy} on Darwin for ARM.
 //
index 86dc4e363ea9caf44d3ad5d5983cc40c6763f103..35e7c567e68d2732a661f8b44fbcb3f1d6b4dffe 100644 (file)
@@ -9,3 +9,4 @@ double foo(double a, double b) {
   return pow(a, b);
 // CHECK: call {{.*}}double @pow
 }
+
index bfe80045503fdf3751df469eb3733a2e28b51cd4..25a1930bdd6d5e0c5c1bf437f1edc96c509bd7c5 100644 (file)
 // RUN: %clang -### -S -fexec-charset=iso-8859-1 -o /dev/null %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-INPUT-CHARSET %s
 // CHECK-INVALID-INPUT-CHARSET: error: invalid value 'iso-8859-1' in '-fexec-charset=iso-8859-1'
 
-// RUN: %clang -### -S -fno-math-builtin %s 2>&1 | FileCheck -check-prefix=CHECK-NO-MATH-BUILTIN %s
-// CHECK-NO-MATH-BUILTIN: "-fno-math-builtin"
-
 // Test that we don't error on these.
 // RUN: %clang -### -S -Werror                                                \
 // RUN:     -falign-functions -falign-functions=2 -fno-align-functions        \