Commit efd67b42 by Richard Henderson Committed by Richard Henderson

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

From-SVN: r30377
parent d83e44be
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> 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. * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
......
...@@ -1819,6 +1819,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level) ...@@ -1819,6 +1819,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
{ {
/* Since the type is OLDDECL's, make OLDDECL's size go with. */ /* Since the type is OLDDECL's, make OLDDECL's size go with. */
DECL_SIZE (newdecl) = DECL_SIZE (olddecl); DECL_SIZE (newdecl) = DECL_SIZE (olddecl);
DECL_MODE (newdecl) = DECL_MODE (olddecl);
if (TREE_CODE (olddecl) != FUNCTION_DECL) if (TREE_CODE (olddecl) != FUNCTION_DECL)
if (DECL_ALIGN (olddecl) > DECL_ALIGN (newdecl)) if (DECL_ALIGN (olddecl) > DECL_ALIGN (newdecl))
DECL_ALIGN (newdecl) = DECL_ALIGN (olddecl); DECL_ALIGN (newdecl) = DECL_ALIGN (olddecl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment