aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-09-30 15:58:39 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-09-30 15:58:39 -0700
commit69ee8086675cffc7b2a3c843e4f9817ef4912def (patch)
tree205e09f6c051a69dfe70e28a74a0279a4bd0136d /gcc/cp/decl.c
parentbf9d3c27744bc5f86b3fa3d75e67552178c283ad (diff)
downloadgcc-69ee8086675cffc7b2a3c843e4f9817ef4912def.zip
gcc-69ee8086675cffc7b2a3c843e4f9817ef4912def.tar.gz
gcc-69ee8086675cffc7b2a3c843e4f9817ef4912def.tar.bz2
* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
From-SVN: r71959
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 17c36b1..64d8e52 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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_TREE (newdecl) = DECL_SAVED_TREE (olddecl);
+ DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
+ }
}
/* Merge the section attribute.