OSDN Git Service

* decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Sep 2003 22:58:39 +0000 (22:58 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Sep 2003 22:58:39 +0000 (22:58 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71959 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4c99f87..b6fe158 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 17c36b1..64d8e52 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.