]> gcc.gnu.org Git - gcc.git/commitdiff
* c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
authorRichard Henderson <rth@redhat.com>
Sun, 2 Dec 2001 19:18:22 +0000 (11:18 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 2 Dec 2001 19:18:22 +0000 (11:18 -0800)
From-SVN: r47535

gcc/ChangeLog
gcc/c-decl.c

index f7c1b463d74cba80153be2725c1c3ccf29d51ad9..ba8d4c7a883b2250dfa8f872ab9105e1029464cb 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-02  Richard Henderson  <rth@redhat.com>
+
+       * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
+
 2001-12-02  Richard Henderson  <rth@redhat.com>
 
        * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
index 674759305a273d93500e89ed69347a6d70b992d5..619b9aecdbe2e74ed1f84c6c4f8eaf916eb37522 100644 (file)
@@ -2019,9 +2019,11 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
             DECL_INITIAL, so that we don't accidentally change function
             declarations into function definitions.  */
          if (! different_binding_level)
-           DECL_INITIAL (newdecl) = DECL_INITIAL (olddecl);
+           {
+             DECL_INITIAL (newdecl) = DECL_INITIAL (olddecl);
+             DECL_SAVED_TREE (newdecl) = DECL_SAVED_TREE (olddecl);
+           }
          DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
-         DECL_SAVED_TREE (newdecl) = DECL_SAVED_TREE (olddecl);
          DECL_ARGUMENTS (newdecl) = DECL_ARGUMENTS (olddecl);
          if (DECL_INLINE (newdecl))
            DECL_ABSTRACT_ORIGIN (newdecl) = DECL_ABSTRACT_ORIGIN (olddecl);
This page took 0.087736 seconds and 5 git commands to generate.