mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
xlc supports __attribute__((aligned(x))), use it.
Patch by Kai. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
dc6d846df5
commit
52d053238a
1 file changed
+1
-1
@@ -78,7 +78,7 @@ template <size_t Alignment> struct AlignedCharArrayImpl;
|
||||
template <> struct AlignedCharArrayImpl<x> { \
|
||||
char alignas(x) aligned; \
|
||||
}
|
||||
#elif defined(__GNUC__)
|
||||
#elif defined(__GNUC__) || defined(__IBM_ATTRIBUTES)
|
||||
#define LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(x) \
|
||||
template <> struct AlignedCharArrayImpl<x> { \
|
||||
char aligned __attribute__((aligned(x))); \
|
||||
|
||||
Reference in new issue
Block a user