<div dir="ltr">Do we warn "ignoring flag" or something like that for these, or are these now silently ignored?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 6, 2019 at 4:37 AM Hans Wennborg via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Author: hans<br>
Date: Wed Mar 6 01:38:04 2019<br>
New Revision: 355489<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=355489&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=355489&view=rev</a><br>
Log:<br>
clang-cl: Parse /Qspectre and a few other missing options (PR40964)<br>
<br>
Modified:<br>
cfe/trunk/include/clang/Driver/CLCompatOptions.td<br>
cfe/trunk/test/Driver/cl-options.c<br>
<br>
Modified: cfe/trunk/include/clang/Driver/CLCompatOptions.td<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CLCompatOptions.td?rev=355489&r1=355488&r2=355489&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CLCompatOptions.td?rev=355489&r1=355488&r2=355489&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/include/clang/Driver/CLCompatOptions.td (original)<br>
+++ cfe/trunk/include/clang/Driver/CLCompatOptions.td Wed Mar 6 01:38:04 2019<br>
@@ -394,6 +394,8 @@ def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;<br>
<br>
// Unsupported:<br>
<br>
+def _SLASH_await : CLFlag<"await">;<br>
+def _SLASH_constexpr : CLJoined<"constexpr:">;<br>
def _SLASH_AI : CLJoinedOrSeparate<"AI">;<br>
def _SLASH_Bt : CLFlag<"Bt">;<br>
def _SLASH_Bt_plus : CLFlag<"Bt+">;<br>
@@ -429,6 +431,9 @@ def _SLASH_Qfast_transcendentals : CLFla<br>
def _SLASH_QIfist : CLFlag<"QIfist">;<br>
def _SLASH_Qimprecise_fwaits : CLFlag<"Qimprecise_fwaits">;<br>
def _SLASH_Qpar : CLFlag<"Qpar">;<br>
+def _SLASH_Qpar_report : CLJoined<"Qpar-report">;<br>
+def _SLASH_Qsafe_fp_loads : CLFlag<"Qsafe_fp_loads">;<br>
+def _SLASH_Qspectre : CLFlag<"Qspectre">;<br>
def _SLASH_Qvec_report : CLJoined<"Qvec-report">;<br>
def _SLASH_u : CLFlag<"u">;<br>
def _SLASH_V : CLFlag<"V">;<br>
<br>
Modified: cfe/trunk/test/Driver/cl-options.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=355489&r1=355488&r2=355489&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=355489&r1=355488&r2=355489&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/Driver/cl-options.c (original)<br>
+++ cfe/trunk/test/Driver/cl-options.c Wed Mar 6 01:38:04 2019<br>
@@ -390,6 +390,8 @@<br>
// Unsupported but parsed options. Check that we don't error on them.<br>
// (/Zs is for syntax-only)<br>
// RUN: %clang_cl /Zs \<br>
+// RUN: /await \<br>
+// RUN: /constexpr:depth1000 /constexpr:backtrace1000 /constexpr:steps1000 \<br>
// RUN: /AIfoo \<br>
// RUN: /AI foo_does_not_exist \<br>
// RUN: /Bt \<br>
@@ -443,6 +445,9 @@<br>
// RUN: /QIfist \<br>
// RUN: /Qimprecise_fwaits \<br>
// RUN: /Qpar \<br>
+// RUN: /Qpar-report:1 \<br>
+// RUN: /Qsafe_fp_loads \<br>
+// RUN: /Qspectre \<br>
// RUN: /Qvec-report:2 \<br>
// RUN: /u \<br>
// RUN: /V \<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>