[clang] d91234b - [SystemZ][z/OS] Update target specific __attribute__((aligned)) value for test
Fanbo Meng via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 9 07:14:51 PDT 2020
Author: Fanbo Meng
Date: 2020-10-09T10:14:44-04:00
New Revision: d91234b21c1a1a34d98157089a8769d8f9a32f06
URL: https://github.com/llvm/llvm-project/commit/d91234b21c1a1a34d98157089a8769d8f9a32f06
DIFF: https://github.com/llvm/llvm-project/commit/d91234b21c1a1a34d98157089a8769d8f9a32f06.diff
LOG: [SystemZ][z/OS] Update target specific __attribute__((aligned)) value for test
z/OS defaults to 16 bytes for __attribute__((aligned)), modify the test to differentiate between z/OS and Linux on s390x.
Reviewed By: abhina.sreeskantharajan
Differential Revision: https://reviews.llvm.org/D89127
Added:
Modified:
clang/test/Sema/struct-packed-align.c
Removed:
################################################################################
diff --git a/clang/test/Sema/struct-packed-align.c b/clang/test/Sema/struct-packed-align.c
index 91c7ce39cc25..122b7f276461 100644
--- a/clang/test/Sema/struct-packed-align.c
+++ b/clang/test/Sema/struct-packed-align.c
@@ -59,7 +59,7 @@ extern int e2[__alignof(struct as1) == 8 ? 1 : -1];
struct __attribute__((aligned)) as1_2 {
char c;
};
-#if ( defined(__s390x__) || ( defined (__ARM_32BIT_STATE) && ! defined(__ANDROID__) ) )
+#if ((defined(__s390x__) && !defined(__MVS__)) || (defined(__ARM_32BIT_STATE) && !defined(__ANDROID__)))
extern int e1_2[sizeof(struct as1_2) == 8 ? 1 : -1];
extern int e2_2[__alignof(struct as1_2) == 8 ? 1 : -1];
#else
More information about the cfe-commits
mailing list