diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-30 22:58:39 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-30 22:58:39 +0000 |
commit | acd77abe9c1338291543856820533806c23b8854 (patch) | |
tree | 205e09f6c051a69dfe70e28a74a0279a4bd0136d /gcc/cp | |
parent | 808ea0c9a400ee863543d2c294d795d34979d625 (diff) | |
download | gcc-acd77abe9c1338291543856820533806c23b8854.tar.gz |
* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71959 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4c99f87eb6b..b6fe158a6c0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 17c36b1cfc8..64d8e5252b1 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. |