[PowerPC][AIX] attribute aligned cannot decrease align of a vector var.
authorSean Fertile <sd.fertile@gmail.com>
Thu, 5 Aug 2021 14:53:27 +0000 (10:53 -0400)
committerSean Fertile <sd.fertile@gmail.com>
Thu, 5 Aug 2021 15:15:12 +0000 (11:15 -0400)
commitf888e442bcc547301b58e77667eb261c0391b897
tree2bb6d9df2d97304aa0d87b66814ffafcabecac2c
parentfd7f6a3c812a5aebefb93370ec130e725d80238e
[PowerPC][AIX] attribute aligned cannot decrease align of a vector var.

On AIX an aligned attribute cannot decrease the alignment of a variable
when placed on a variable declaration of vector type.

Differential Revision: https://reviews.llvm.org/D107522
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGen/aix-vector-attr-aligned.c [new file with mode: 0644]
clang/test/Sema/aix-attr-aligned-vector-warn.c [new file with mode: 0644]