r354626 - [clang-cl] Whitelist -fbracket-depth=123 in clang-cl
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 21 13:53:12 PST 2019
Author: rnk
Date: Thu Feb 21 13:53:12 2019
New Revision: 354626
URL: http://llvm.org/viewvc/llvm-project?rev=354626&view=rev
Log:
[clang-cl] Whitelist -fbracket-depth=123 in clang-cl
Users apparently need it when expanding large quantities of macros.
Fixes PR38685
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/test/Driver/cl-options.c
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=354626&r1=354625&r2=354626&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Thu Feb 21 13:53:12 2019
@@ -901,7 +901,7 @@ def fno_fast_math : Flag<["-"], "fno-fas
def fmath_errno : Flag<["-"], "fmath-errno">, Group<f_Group>, Flags<[CC1Option]>,
HelpText<"Require math functions to indicate errors by setting errno">;
def fno_math_errno : Flag<["-"], "fno-math-errno">, Group<f_Group>;
-def fbracket_depth_EQ : Joined<["-"], "fbracket-depth=">, Group<f_Group>;
+def fbracket_depth_EQ : Joined<["-"], "fbracket-depth=">, Group<f_Group>, Flags<[CoreOption]>;
def fsignaling_math : Flag<["-"], "fsignaling-math">, Group<f_Group>;
def fno_signaling_math : Flag<["-"], "fno-signaling-math">, Group<f_Group>;
def fjump_tables : Flag<["-"], "fjump-tables">, Group<f_Group>;
Modified: cfe/trunk/test/Driver/cl-options.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=354626&r1=354625&r2=354626&view=diff
==============================================================================
--- cfe/trunk/test/Driver/cl-options.c (original)
+++ cfe/trunk/test/Driver/cl-options.c Thu Feb 21 13:53:12 2019
@@ -623,6 +623,7 @@
// RUN: -fmerge-all-constants \
// RUN: -no-canonical-prefixes \
// RUN: -march=skylake \
+// RUN: -fbracket-depth=123 \
// RUN: --version \
// RUN: -Werror /Zs -- %s 2>&1
More information about the cfe-commits
mailing list