[clang] bdf4c7b - [z/OS]Remove overriding default attribute aligned value
Fanbo Meng via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 30 12:51:49 PDT 2021
Author: Fanbo Meng
Date: 2021-07-30T15:51:40-04:00
New Revision: bdf4c7b738ee3dfbcd468ec347beec58b6e43a5a
URL: https://github.com/llvm/llvm-project/commit/bdf4c7b738ee3dfbcd468ec347beec58b6e43a5a
DIFF: https://github.com/llvm/llvm-project/commit/bdf4c7b738ee3dfbcd468ec347beec58b6e43a5a.diff
LOG: [z/OS]Remove overriding default attribute aligned value
Make DefaultAlignForAttributeAligned consistent with SystemZ.
Reviewed By: abhina.sreeskantharajan, anirudhp
Differential Revision: https://reviews.llvm.org/D107189
Added:
Modified:
clang/lib/Basic/Targets/OSTargets.h
clang/test/CodeGen/SystemZ/zos-alignment.c
Removed:
################################################################################
diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h
index 6329acf756834..9780d5036aa23 100644
--- a/clang/lib/Basic/Targets/OSTargets.h
+++ b/clang/lib/Basic/Targets/OSTargets.h
@@ -796,7 +796,6 @@ class LLVM_LIBRARY_VISIBILITY ZOSTargetInfo : public OSTargetInfo<Target> {
this->UseZeroLengthBitfieldAlignment = true;
this->UseLeadingZeroLengthBitfield = false;
this->ZeroLengthBitfieldBoundary = 32;
- this->DefaultAlignForAttributeAligned = 128;
}
};
diff --git a/clang/test/CodeGen/SystemZ/zos-alignment.c b/clang/test/CodeGen/SystemZ/zos-alignment.c
index 7b08f4bf7f4a7..be26c5a2785dd 100644
--- a/clang/test/CodeGen/SystemZ/zos-alignment.c
+++ b/clang/test/CodeGen/SystemZ/zos-alignment.c
@@ -147,7 +147,7 @@ struct s10 {
} S10;
// CHECK: 0 | struct s10
// CHECK-NEXT: 0 | unsigned int a
-// CHECK-NEXT: | [sizeof=16, align=16]
+// CHECK-NEXT: | [sizeof=8, align=8]
struct s11 {
char a;
More information about the cfe-commits
mailing list