davezarzycki created this revision. davezarzycki added reviewers: akhuang, rnk, rsmith. davezarzycki added a project: clang. Herald added a reviewer: aaron.ballman.
One should not need to use `-fms-extensions` in order to use 32-bit pointers on 64-bit platforms. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D79673 Files: clang/include/clang/Basic/Attr.td Index: clang/include/clang/Basic/Attr.td =================================================================== --- clang/include/clang/Basic/Attr.td +++ clang/include/clang/Basic/Attr.td @@ -3080,22 +3080,22 @@ } def Ptr32 : TypeAttr { - let Spellings = [Keyword<"__ptr32">]; + let Spellings = [Keyword<"__ptr32">, Clang<"ptr32">]; let Documentation = [Ptr32Docs]; } def Ptr64 : TypeAttr { - let Spellings = [Keyword<"__ptr64">]; + let Spellings = [Keyword<"__ptr64">, Clang<"ptr64">]; let Documentation = [Ptr64Docs]; } def SPtr : TypeAttr { - let Spellings = [Keyword<"__sptr">]; + let Spellings = [Keyword<"__sptr">, Clang<"sptr">]; let Documentation = [SPtrDocs]; } def UPtr : TypeAttr { - let Spellings = [Keyword<"__uptr">]; + let Spellings = [Keyword<"__uptr">, Clang<"uptr">]; let Documentation = [UPtrDocs]; }
Index: clang/include/clang/Basic/Attr.td =================================================================== --- clang/include/clang/Basic/Attr.td +++ clang/include/clang/Basic/Attr.td @@ -3080,22 +3080,22 @@ } def Ptr32 : TypeAttr { - let Spellings = [Keyword<"__ptr32">]; + let Spellings = [Keyword<"__ptr32">, Clang<"ptr32">]; let Documentation = [Ptr32Docs]; } def Ptr64 : TypeAttr { - let Spellings = [Keyword<"__ptr64">]; + let Spellings = [Keyword<"__ptr64">, Clang<"ptr64">]; let Documentation = [Ptr64Docs]; } def SPtr : TypeAttr { - let Spellings = [Keyword<"__sptr">]; + let Spellings = [Keyword<"__sptr">, Clang<"sptr">]; let Documentation = [SPtrDocs]; } def UPtr : TypeAttr { - let Spellings = [Keyword<"__uptr">]; + let Spellings = [Keyword<"__uptr">, Clang<"uptr">]; let Documentation = [UPtrDocs]; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits