* c-decl.c (duplicate_decls): Copy DECL_MODE too.
From-SVN: r30377
This commit is contained in:
parent
d83e44be33
commit
efd67b425a
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue