From 13aef9aabe6bd928a78d33733560c65122f7399f Mon Sep 17 00:00:00 2001 From: Matthew Simpson Date: Sun, 7 Feb 2016 17:14:03 +0000 Subject: [PATCH] Make -fno-math-builtin a cc1 option This patch makes -fno-math-builtin a frontend only option instead of a driver option. The appropriate test case was committed in r186899 when the flag was introduced. This should fix PR26317. Contributed-by: Frank Herrmann git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260044 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/CC1Options.td | 2 ++ include/clang/Driver/Options.td | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index f4b801e088..0a6b7f0eeb 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -151,6 +151,8 @@ def msave_temp_labels : Flag<["-"], "msave-temp-labels">, "on compiler-generated code.">; def mrelocation_model : Separate<["-"], "mrelocation-model">, HelpText<"The relocation model to use">; +def fno_math_builtin : Flag<["-"], "fno-math-builtin">, + HelpText<"Disable implicit builtin knowledge of math functions">; } def disable_llvm_optzns : Flag<["-"], "disable-llvm-optzns">, diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index cd5fae3125..0b7bb8ab5e 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -826,8 +826,6 @@ def fno_builtin : Flag<["-"], "fno-builtin">, Group, Flags<[CC1Option]> HelpText<"Disable implicit builtin knowledge of functions">; def fno_builtin_ : Joined<["-"], "fno-builtin-">, Group, Flags<[CC1Option]>, HelpText<"Disable implicit builtin knowledge of a specific function">; -def fno_math_builtin : Flag<["-"], "fno-math-builtin">, Group, Flags<[CC1Option]>, - HelpText<"Disable implicit builtin knowledge of math functions">; def fno_caret_diagnostics : Flag<["-"], "fno-caret-diagnostics">, Group, Flags<[CC1Option]>; def fno_color_diagnostics : Flag<["-"], "fno-color-diagnostics">, Group, -- 2.50.1