diff options
author | Hans Wennborg <hans@hanshq.net> | 2019-03-08 09:27:18 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2019-03-08 09:27:18 +0000 |
commit | 3dd7642ee4ba0dbb7e651b5ec66ed7039e97a313 (patch) | |
tree | 5fd2f589694cbd8b035170c8fceb1ddb0847c888 | |
parent | fc425397b0cd9229d788efc4afecb8b07a9c8128 (diff) |
Merging r355489:
------------------------------------------------------------------------
r355489 | hans | 2019-03-06 10:38:04 +0100 (Wed, 06 Mar 2019) | 1 line
clang-cl: Parse /Qspectre and a few other missing options (PR40964)
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_80@355677 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Driver/CLCompatOptions.td | 5 | ||||
-rw-r--r-- | test/Driver/cl-options.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index ce5a435362..ca23f7b819 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -395,6 +395,8 @@ def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">; // Unsupported: +def _SLASH_await : CLFlag<"await">; +def _SLASH_constexpr : CLJoined<"constexpr:">; def _SLASH_AI : CLJoinedOrSeparate<"AI">; def _SLASH_Bt : CLFlag<"Bt">; def _SLASH_Bt_plus : CLFlag<"Bt+">; @@ -430,6 +432,9 @@ def _SLASH_Qfast_transcendentals : CLFlag<"Qfast_transcendentals">; def _SLASH_QIfist : CLFlag<"QIfist">; def _SLASH_Qimprecise_fwaits : CLFlag<"Qimprecise_fwaits">; def _SLASH_Qpar : CLFlag<"Qpar">; +def _SLASH_Qpar_report : CLJoined<"Qpar-report">; +def _SLASH_Qsafe_fp_loads : CLFlag<"Qsafe_fp_loads">; +def _SLASH_Qspectre : CLFlag<"Qspectre">; def _SLASH_Qvec_report : CLJoined<"Qvec-report">; def _SLASH_u : CLFlag<"u">; def _SLASH_V : CLFlag<"V">; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 1fa2ae3914..909e391cec 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -390,6 +390,8 @@ // Unsupported but parsed options. Check that we don't error on them. // (/Zs is for syntax-only) // RUN: %clang_cl /Zs \ +// RUN: /await \ +// RUN: /constexpr:depth1000 /constexpr:backtrace1000 /constexpr:steps1000 \ // RUN: /AIfoo \ // RUN: /AI foo_does_not_exist \ // RUN: /Bt \ @@ -443,6 +445,9 @@ // RUN: /QIfist \ // RUN: /Qimprecise_fwaits \ // RUN: /Qpar \ +// RUN: /Qpar-report:1 \ +// RUN: /Qsafe_fp_loads \ +// RUN: /Qspectre \ // RUN: /Qvec-report:2 \ // RUN: /u \ // RUN: /V \ |