c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to update the respective field on newdecl.

gcc/
2008-02-27  Jan Beulich  <jbeulich@novell.com>

	* c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
	update the respective field on newdecl.

From-SVN: r132719
This commit is contained in:
Jan Beulich 2008-02-27 14:59:50 +00:00 committed by Jan Beulich
parent b5a4419cde
commit 8220334aba
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-02-27 Jan Beulich <jbeulich@novell.com>
* c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
update the respective field on newdecl.
2008-02-27 Revital Eres <eres@il.ibm.com>
PR rtl-optimization/34999

View file

@ -1667,7 +1667,7 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
if (DECL_ALIGN (olddecl) > DECL_ALIGN (newdecl))
{
DECL_ALIGN (newdecl) = DECL_ALIGN (olddecl);
DECL_USER_ALIGN (newdecl) |= DECL_ALIGN (olddecl);
DECL_USER_ALIGN (newdecl) |= DECL_USER_ALIGN (olddecl);
}
}