OSDN Git Service

* c-decl.c (duplicate_decls): Set DECL_ABSTRACT_ORIGIN to olddecl
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Jul 1997 02:16:12 +0000 (02:16 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Jul 1997 02:16:12 +0000 (02:16 +0000)
if inline function and not new definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14480 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index da9c9ad..4662d39 100644 (file)
@@ -1942,6 +1942,8 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
            DECL_INITIAL (newdecl) = DECL_INITIAL (olddecl);
          DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
          DECL_ARGUMENTS (newdecl) = DECL_ARGUMENTS (olddecl);
+         if (DECL_INLINE (newdecl))
+           DECL_ABSTRACT_ORIGIN (newdecl) = olddecl;
        }
     }
   if (different_binding_level)