This patch adds the z/OS target and defines macros which is a stepping stone towards enabling a native build on z/OS.
Dependent on https://reviews.llvm.org/D82081 being merged first.
Differential D85324
[SystemZ][z/OS] Add z/OS Target and define macros abhina.sreeskantharajan on Aug 5 2020, 9:35 AM. Authored by
Details This patch adds the z/OS target and defines macros which is a stepping stone towards enabling a native build on z/OS. Dependent on https://reviews.llvm.org/D82081 being merged first.
Diff Detail
Event Timeline
Comment Actions 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 Actions 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 test to reflect these new changes.
Comment Actions Addressed Hubert's comments, and removed some macros that are unnecessary with system header updates.
Comment Actions Thanks MaskRay. I moved the zos testcase to a new file called init-zos.c instead and reduced the number of RUN commands.
Comment Actions Thanks for reviewing. I've updated the comments and removed ISOC99_SOURCE macro. I've updated the lit test to reflect these changes.
|
The comment from https://reviews.llvm.org/D85324?id=283290#inline-786609 applies here as well. _LONG_LONG should not be defined under -std=c89 -pedantic-errors or -std=c89 -Werror=long-long.