]> gcc.gnu.org Git - gcc.git/commitdiff
c-decl.c (duplicate_decls): Set DECL_ABSTRACT_ORIGIN to olddecl if inline function...
authorDoug Evans <dje@gnu.org>
Sat, 19 Jul 1997 02:16:12 +0000 (02:16 +0000)
committerDoug Evans <dje@gnu.org>
Sat, 19 Jul 1997 02:16:12 +0000 (02:16 +0000)
* c-decl.c (duplicate_decls): Set DECL_ABSTRACT_ORIGIN to olddecl
if inline function and not new definition.

From-SVN: r14480

gcc/c-decl.c

index da9c9ad92339a6536845611ad8f57e68f059ca16..4662d39f2dd2586874b62cb523d3d34dfb865ff8 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)
This page took 0.073828 seconds and 5 git commands to generate.