[PATCH] For clang-cl, implement additional compatibility arguments (/vm, /GF, /GF-, /Zm, /bigobj).
David Ziman
kumquats.a.pair at gmail.com
Thu Oct 3 16:07:43 PDT 2013
Thanks for reviewing. I have modified the patch as requested in review.
The /vm* options are now enumerated individually.
/vmg - now silently ignored.
/vmb, /vmm, /vms, and /vmv - now marked as unsupported.
Please review again and submit if the revisions are acceptable.
Thanks!
David
http://llvm-reviews.chandlerc.com/D1818
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D1818?vs=4625&id=4649#toc
Files:
include/clang/Driver/CLCompatOptions.td
Index: include/clang/Driver/CLCompatOptions.td
===================================================================
--- include/clang/Driver/CLCompatOptions.td
+++ include/clang/Driver/CLCompatOptions.td
@@ -57,6 +57,8 @@
MetaVarName<"<macro[=value]>">, Alias<D>;
def _SLASH_GR : CLFlag<"GR">, HelpText<"Enable RTTI">, Alias<frtti>;
def _SLASH_GR_ : CLFlag<"GR-">, HelpText<"Disable RTTI">, Alias<fno_rtti>;
+def _SLASH_GF_ : CLFlag<"GF-">, HelpText<"Disable string pooling">,
+ Alias<fwritable_strings>;
def _SLASH_help : CLFlag<"help">, Alias<help>,
HelpText<"Display available options">;
def _SLASH_I : CLJoinedOrSeparate<"I">,
@@ -144,18 +146,22 @@
def _SLASH_analyze_ : CLIgnoredFlag<"analyze-">;
def _SLASH_errorReport : CLIgnoredJoined<"errorReport">;
+def _SLASH_GF : CLIgnoredFlag<"GF">;
def _SLASH_GS_ : CLIgnoredFlag<"GS-">;
def _SLASH_nologo : CLIgnoredFlag<"nologo">;
def _SLASH_Ob1 : CLIgnoredFlag<"Ob1">;
def _SLASH_Ob2 : CLIgnoredFlag<"Ob2">;
def _SLASH_RTC : CLIgnoredJoined<"RTC">;
+def _SLASH_vmg : CLIgnoredFlag<"vmg">;
+def _SLASH_w : CLIgnoredJoined<"w">;
def _SLASH_Zc_forScope : CLIgnoredFlag<"Zc:forScope">;
def _SLASH_Zc_wchar_t : CLIgnoredFlag<"Zc:wchar_t">;
-def _SLASH_w : CLIgnoredJoined<"w">;
+def _SLASH_Zm : CLIgnoredJoined<"Zm">;
// Unsupported:
+def _SLASH_bigobj : CLFlag<"bigobj">;
def _SLASH_EH : CLJoined<"EH">;
def _SLASH_Fd : CLJoined<"Fd">;
def _SLASH_fp : CLJoined<"fp">;
@@ -170,6 +176,10 @@
def _SLASH_GZ : CLFlag<"GZ">;
def _SLASH_MP : CLJoined<"MP">;
def _SLASH_o : CLJoinedOrSeparate<"o">;
+def _SLASH_vmb : CLFlag<"vmb">;
+def _SLASH_vmm : CLFlag<"vmm">;
+def _SLASH_vms : CLFlag<"vms">;
+def _SLASH_vmv : CLFlag<"vmv">;
def _SLASH_Za : CLFlag<"Za">;
def _SLASH_Zc : CLJoined<"Zc:">;
def _SLASH_ZI : CLFlag<"ZI">;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1818.2.patch
Type: text/x-patch
Size: 1800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131003/c8dc5cb7/attachment.bin>
More information about the cfe-commits
mailing list