This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C/C++ PATCH] Fix merge_decls/duplicate_decls DECL_USER_ALIGN/DECL_ALIGN handling (PR c/52181)


On Thu, 9 Feb 2012, Jakub Jelinek wrote:

> 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
> 
> 	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.

The C change and testcase are OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]