6 Commits

Author SHA1 Message Date
Zibi Sarbinowski
d4f0f171d7 [z/OS] Disable pr59765-modules-global-ctor-dtor.cppm on z/OS to make it unsupported.
[z/OS] Disable pr59765-modules-global-ctor-dtor.cppm

Reviewed By: SeanP

Differential Revision: https://reviews.llvm.org/D151828
2023-06-01 08:44:30 -05:00
Jake Egan
824874c8d4 [AIX][NFC] Unsupport test when running on AIX
Previously the test's targets were restricted to avoid the AIX target, but
it should be marked unsupported for system-aix instead because the test
fails to run on AIX as well.
2023-01-12 13:21:59 -05:00
Jake Egan
07aaae1303 [NFC][AIX] Temporarily XFAIL test while investigating
Previous attempt to restrict this test to x86 and aarch64 targets only didn't work.
So XFAIL this test while investigating to get the AIX bot back to green.
2023-01-10 19:53:44 -05:00
Chuanqi Xu
9cb1298dcc [NFC] Fix a test faliing in AIX
See https://reviews.llvm.org/D140867.

The signature of the constructor/destrucor of the global variables is
different in different targets. And the CHECKs in the test is
unavailable in other targets (e.g., AIX). So the patch tries to avoid
the test failure by requiring the target type.
2023-01-10 10:41:21 +08:00
Chuanqi Xu
2893bcd6cd [NFC] Fix the test failure in 08f957808e5f7e44b11d in armv8
The test in 08f957808e5f7e44b11d may fail in armv8 since the signature
of the constructor may be different. This patch tries to fix it.
2023-01-09 11:54:17 +08:00
Chuanqi Xu
08f957808e [C++20] [Modules] Don't generate global ctors/dtors for variables which are available externally
Closes https://github.com/llvm/llvm-project/issues/59765.

Currently we will generate the global ctor/dtor for variables in
importing modules. It will cause multiple initialization/destructions.
It makes no sense. This patch tries to not generate global ctor/dtor for
variables which are available externally. Note that the variables in
header units and clang modules won't be available externally by default.

Reviewed By: iains

Differential Revision: https://reviews.llvm.org/D140867
2023-01-09 10:48:43 +08:00