]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/52181 (merge_decls doesn't handle DECL_USER_ALIGN properly)
authorJakub Jelinek <jakub@redhat.com>
Tue, 14 Feb 2012 06:15:35 +0000 (07:15 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 14 Feb 2012 06:15:35 +0000 (07:15 +0100)
commit45f41865ff05c95063563c5c0e2e4306c40f08a7
tree8eb32a64dbd1fd610d6b8ec9aceff9719e62f75f
parent1380aca7e6219817086aaacf9b264cf4b5a84727
re PR c/52181 (merge_decls doesn't handle DECL_USER_ALIGN properly)

PR c/52181
* c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
newdecl.

* decl.c (duplicate_decls): If olddecl has bigger DECL_ALIGN than
newdecl, copy DECL_ALIGN to newdecl and or DECL_USER_ALIGN bits.

* c-c++-common/pr52181.c: New test.

From-SVN: r184193
gcc/ChangeLog
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr52181.c [new file with mode: 0644]