[PATCH] D68055: Add -fgnuc-version= to control __GNUC__ and other GCC macros

Jacob Lifshay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 9 13:38:51 PDT 2019


programmerjake requested changes to this revision.
programmerjake added inline comments.
This revision now requires changes to proceed.


================
Comment at: clang/lib/Frontend/InitPreprocessor.cpp:589
+    if (LangOpts.CPlusPlus) {
+      Builder.defineMacro("__GNUG__", Twine(GNUCMinor));
+      Builder.defineMacro("__GXX_WEAK__");
----------------
Pretty sure that should be `GNUCMajor`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68055/new/

https://reviews.llvm.org/D68055





More information about the cfe-commits mailing list