[PATCH] D78511: [Driver][doc] Document option -mtune as a no-op. NFC.
Sjoerd Meijer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 20 12:27:41 PDT 2020
SjoerdMeijer created this revision.
SjoerdMeijer added a reviewer: dblaikie.
This is a doc change documenting that option -mtune does not perform any CPU type specific tuning but exists for compatability reasons with GCC.
https://reviews.llvm.org/D78511
Files:
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Driver/Options.td
Index: clang/include/clang/Driver/Options.td
===================================================================
--- clang/include/clang/Driver/Options.td
+++ clang/include/clang/Driver/Options.td
@@ -2710,7 +2710,9 @@
def module_file_info : Flag<["-"], "module-file-info">, Flags<[DriverOption,CC1Option]>, Group<Action_Group>,
HelpText<"Provide information about a particular module file">;
def mthumb : Flag<["-"], "mthumb">, Group<m_Group>;
-def mtune_EQ : Joined<["-"], "mtune=">, Group<m_Group>;
+def mtune_EQ : Joined<["-"], "mtune=">, Group<m_Group>,
+ HelpText<"Accept any <value> for compatability reasons with GCC, thus not "
+ "performing any CPU type specific tuning">;
def multi__module : Flag<["-"], "multi_module">;
def multiply__defined__unused : Separate<["-"], "multiply_defined_unused">;
def multiply__defined : Separate<["-"], "multiply_defined">;
Index: clang/docs/ClangCommandLineReference.rst
===================================================================
--- clang/docs/ClangCommandLineReference.rst
+++ clang/docs/ClangCommandLineReference.rst
@@ -2735,6 +2735,8 @@
.. option:: -mtune=<arg>
.. program:: clang
+Accepts any value for compatability reasons with GCC, thus not performing any CPU type specific tuning.
+
.. option:: -mtvos-version-min=<arg>, -mappletvos-version-min=<arg>
.. option:: -municode<arg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78511.258809.patch
Type: text/x-patch
Size: 1370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200420/1b48004f/attachment-0001.bin>
More information about the cfe-commits
mailing list