* c-decl.c (duplicate_decls): Copy DECL_MODE too.

From-SVN: r30377
This commit is contained in:
Richard Henderson 1999-11-03 10:11:23 -08:00 committed by Richard Henderson
parent d83e44be33
commit efd67b425a
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
* c-decl.c (duplicate_decls): Copy DECL_MODE too.
Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.

View File

@ -1819,6 +1819,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
{
/* Since the type is OLDDECL's, make OLDDECL's size go with. */
DECL_SIZE (newdecl) = DECL_SIZE (olddecl);
DECL_MODE (newdecl) = DECL_MODE (olddecl);
if (TREE_CODE (olddecl) != FUNCTION_DECL)
if (DECL_ALIGN (olddecl) > DECL_ALIGN (newdecl))
DECL_ALIGN (newdecl) = DECL_ALIGN (olddecl);