]> granicus.if.org Git - clang/commit
Gcc pads the size of an array using the alignment of its elements.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 26 Apr 2011 21:05:39 +0000 (21:05 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 26 Apr 2011 21:05:39 +0000 (21:05 +0000)
commitcd88b4171753dcb2bc0a21d78f1597c796bb8a20
treed0992b928585b87b2a31fb30239d7406e29e6f7d
parent864c041e118155c2b1ce0ba36942a3da5a4a055e
Gcc pads the size of an array using the alignment of its elements.

The size of the array may not be aligned according to alignment of its elements if an alignment attribute is
specified in a typedef. Fixes rdar://8665729 & http://llvm.org/PR5637.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130242 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/Sema/align-x86-64.c
test/Sema/align-x86.c