This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ][z/OS] Add required options/macro/etc for z/os compilation step
ClosedPublic

Authored by SeanP on Jun 22 2023, 12:37 PM.

Details

Summary

Add the required options and macros to the compilation step for z/os.

Diff Detail

Event Timeline

SeanP created this revision.Jun 22 2023, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 12:37 PM
SeanP requested review of this revision.Jun 22 2023, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 12:37 PM

The CI shows the following lit tests are failing due to this patch which should be resolved first

Failed Tests (7):

Clang :: CodeGen/SystemZ/zos-alignment.c
Clang :: CodeGen/target-data.c
Clang :: CodeGen/wchar-size.c
Clang :: Driver/zos-comp-cxx.cpp
Clang :: Driver/zos-driver-defaults.c
Clang :: Driver/zos-dwarfversion.c
Clang :: Preprocessor/init-s390x.c
SeanP updated this revision to Diff 534232.Jun 24 2023, 10:05 AM

Removed __ptr32 address space from data layout.

SeanP updated this revision to Diff 534545.Jun 26 2023, 7:14 AM

minor clang-format updates

LGTM, it looks like CI is failing for some unrelated reason, but it would be good to kick it off again

This revision is now accepted and ready to land.Jun 26 2023, 8:56 AM
MaskRay added inline comments.Jun 26 2023, 9:43 AM
clang/include/clang/Driver/Options.td
3713

Drop NoXarchOption. It has a confusing name. It's just to give an error for -Xarch ... which is not relevant here.

clang/test/Driver/zos-comp.c
4

wrap too quickly.

The whole thing can be placed on one line.

9

Use -SAME: whenever applicable

SeanP updated this revision to Diff 534729.Jun 26 2023, 1:21 PM

apply feedback

SeanP marked 3 inline comments as done.Jun 26 2023, 1:24 PM

Thanks. made these changes.

SeanP updated this revision to Diff 535214.Jun 27 2023, 6:59 PM

Generalize path names in test cases so \\ on windows match.

SeanP updated this revision to Diff 535353.Jun 28 2023, 6:00 AM

Got old diff last time.

new changes LGTM

SeanP updated this revision to Diff 535937.Jun 29 2023, 11:37 AM

fix merge conflicts

This revision was landed with ongoing or failed builds.Jun 30 2023, 5:06 AM
This revision was automatically updated to reflect the committed changes.