[SystemZ][z/OS] Set maximum value to truncate attribute aligned to for static variabl...
authorFanbo Meng <fanbo.meng@ibm.com>
Mon, 29 Mar 2021 13:43:46 +0000 (09:43 -0400)
committerFanbo Meng <fanbo.meng@ibm.com>
Mon, 29 Mar 2021 13:44:33 +0000 (09:44 -0400)
commit0858f0e09e33f62fc1dcc45e0bdec47eee1e23ba
tree8942d801059645131d9b58e355cf0a1dbdde9704
parent485c8ce7337b11b8afe4a32a319960a5d7672986
[SystemZ][z/OS] Set maximum value to truncate attribute aligned to for static variables on z/OS target

On z/OS there is a hard limitation on on the maximum requestable alignment in aligned attribute for static variables. We need to truncate values greater than that.

Reviewed By: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D98864
clang/include/clang/Basic/TargetInfo.h
clang/lib/AST/ASTContext.cpp
clang/lib/Basic/TargetInfo.cpp
clang/lib/Basic/Targets/OSTargets.h
clang/test/CodeGen/SystemZ/zos-alignment.c