* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.

From-SVN: r71959
This commit is contained in:
Richard Henderson 2003-09-30 15:58:39 -07:00 committed by Richard Henderson
parent bf9d3c2774
commit 69ee808667
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-09-30 Richard Henderson <rth@redhat.com>
* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
* g++spec.c: Convert to ISO C90 prototypes.

View File

@ -3198,7 +3198,10 @@ duplicate_decls (tree newdecl, tree olddecl)
if (CAN_HAVE_FULL_LANG_DECL_P (newdecl)
&& DECL_LANG_SPECIFIC (newdecl)
&& DECL_LANG_SPECIFIC (olddecl))
{
DECL_SAVED_TREE (newdecl) = DECL_SAVED_TREE (olddecl);
DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
}
}
/* Merge the section attribute.