abhina.sreeskantharajan updated this revision to Diff 283942.
abhina.sreeskantharajan marked 2 inline comments as done.
abhina.sreeskantharajan added a comment.
Thanks Hubert for reviewing. I updated the patch to fix the wchar_t comment and
the if guards for the macros. I also updated the lit tes
abhina.sreeskantharajan marked 2 inline comments as done.
abhina.sreeskantharajan added inline comments.
Comment at: clang/lib/Basic/Targets/OSTargets.h:732
+Builder.defineMacro("_OPEN_DEFAULT");
+Builder.defineMacro("_UNIX03_WITHDRAWN");
+Builder.defineMacro("__370__
abhina.sreeskantharajan added inline comments.
Comment at: clang/lib/Basic/Targets/OSTargets.h:780
+public:
+ ZOSTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
+ : OSTargetInfo(Triple, Opts) {}
tatyana-krasnukha wrote:
> It is possible to
tatyana-krasnukha added a comment.
I'm not familiar with the z/OS target, so I cannot check the correctness of the
target-specific changes. The overall patch looks good.
Comment at: clang/lib/Basic/Targets/OSTargets.h:780
+public:
+ ZOSTargetInfo(const llvm::Triple &Triple, c
hubert.reinterpretcast added inline comments.
Comment at: clang/lib/Basic/Targets/OSTargets.h:732
+Builder.defineMacro("_OPEN_DEFAULT");
+Builder.defineMacro("_UNIX03_WITHDRAWN");
+Builder.defineMacro("__370__");
This is not defined by z/OS XL C/C++.
abhina.sreeskantharajan updated this revision to Diff 283290.
abhina.sreeskantharajan added a reviewer: MaskRay.
abhina.sreeskantharajan added a comment.
Thanks MaskRay, I removed the extra braces.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85324
MaskRay added inline comments.
Comment at: clang/lib/Basic/Targets/OSTargets.h:745
+if (this->PointerWidth == 64) {
+ Builder.defineMacro("__64BIT__");
+}
anirudhp wrote:
> abhina.sreeskantharajan wrote:
> > anirudhp wrote:
> > > What about the `__LP
anirudhp added inline comments.
Comment at: clang/lib/Basic/Targets/OSTargets.h:745
+if (this->PointerWidth == 64) {
+ Builder.defineMacro("__64BIT__");
+}
abhina.sreeskantharajan wrote:
> anirudhp wrote:
> > What about the `__LP64__` and the `_LP64`
abhina.sreeskantharajan added inline comments.
Comment at: clang/lib/Basic/Targets/OSTargets.h:745
+if (this->PointerWidth == 64) {
+ Builder.defineMacro("__64BIT__");
+}
anirudhp wrote:
> What about the `__LP64__` and the `_LP64` macros?
These two a
anirudhp added inline comments.
Comment at: clang/lib/Basic/Targets/OSTargets.h:745
+if (this->PointerWidth == 64) {
+ Builder.defineMacro("__64BIT__");
+}
What about the `__LP64__` and the `_LP64` macros?
Repository:
rG LLVM Github Monorepo
CHA
abhina.sreeskantharajan created this revision.
abhina.sreeskantharajan added reviewers: uweigand, Kai, hubert.reinterpretcast,
yusra.syeda, SeanP.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
abhina.sreeskantharajan requested review of this revision.
This patch adds the
11 matches
Mail list logo