]> granicus.if.org Git - clang/commit
Propagate alignment for _Complex
authorJF Bastien <jfb@google.com>
Wed, 17 Jul 2013 05:57:42 +0000 (05:57 +0000)
committerJF Bastien <jfb@google.com>
Wed, 17 Jul 2013 05:57:42 +0000 (05:57 +0000)
commitab96e565d6a5aa770ad31e7cb8100cd6a9b3d8a2
tree61271fb3f3fd429f4ee5c357e190fab94d2363a4
parentb470d1a54877e7b3622e4cbdeae423c6d51be696
Propagate alignment for _Complex

_Complex load/store didn't have their alignment set properly, which was visible when GCC's torture tests use volatile _Complex.

Update some existing tests to check for alignment, and add a new test which also has over-aligned volatile _Complex (since the imaginary part shouldn't be overaligned, only the real part).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186490 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprComplex.cpp
test/CodeGen/volatile-1.c
test/CodeGen/volatile-2.c
test/CodeGen/volatile-complex.c [new file with mode: 0644]