* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
authorRichard Henderson <rth@redhat.com>
Tue, 30 Sep 2003 22:58:39 +0000 (15:58 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 30 Sep 2003 22:58:39 +0000 (15:58 -0700)
From-SVN: r71959

gcc/cp/ChangeLog
gcc/cp/decl.c

index 4c99f87eb6bd32ad1487af926a27a771aeca3177..b6fe158a6c0f17162d660f6a84784069f0da1d7f 100644 (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.
index 17c36b1cfc8e921887794e6c08894f8aec1b9ad8..64d8e5252b1d91357ef8cb61f05bb99842bc8741 100644 (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_TREE (newdecl) = DECL_SAVED_TREE (olddecl);
+             DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
+           }
        }
 
       /* Merge the section attribute.