From 57b627b41cb716e9d2653839be57e5b7b3208781 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 llvm-svn: 260044 --- clang/include/clang/Driver/CC1Options.td | 2 ++ clang/include/clang/Driver/Options.td | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Driver/CC1Options.td b/clang/include/clang/Driver/CC1Options.td index f4b801e..0a6b7f0e 100644 --- a/clang/include/clang/Driver/CC1Options.td +++ b/clang/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/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index cd5fae3..0b7bb8a 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/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.7.4