summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/ReleaseNotes.rst5
-rw-r--r--clang/docs/UsersManual.rst7
2 files changed, 11 insertions, 1 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 8e9d298c959..7f823e38262 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -80,7 +80,10 @@ Non-comprehensive list of changes in this release
New Compiler Flags
------------------
-- ...
+- The -fgnuc-version= flag now controls the value of ``__GNUC__`` and related
+ macros. This flag does not enable or disable any GCC extensions implemented in
+ Clang. Setting the version to zero causes Clang to leave ``__GNUC__`` and
+ other GNU-namespaced macros, such as ``__GXX_WEAK__``, undefined.
Deprecated Compiler Flags
-------------------------
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index 419714d38cd..de28d776715 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -701,6 +701,13 @@ Other Options
-------------
Clang options that don't fit neatly into other categories.
+.. option:: -fgnuc-version=
+
+ This flag controls the value of ``__GNUC__`` and related macros. This flag
+ does not enable or disable any GCC extensions implemented in Clang. Setting
+ the version to zero causes Clang to leave ``__GNUC__`` and other
+ GNU-namespaced macros, such as ``__GXX_WEAK__``, undefined.
+
.. option:: -MV
When emitting a dependency file, use formatting conventions appropriate
OpenPOWER on IntegriCloud