]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/8518 (ICE when compiling mplayer)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sat, 23 Nov 2002 08:20:02 +0000 (08:20 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 23 Nov 2002 08:20:02 +0000 (08:20 +0000)
PR c/8518
* c-decl.c (duplicate_decls): Outline the second definition
of an extern inline function in all cases.

From-SVN: r59409

gcc/ChangeLog
gcc/c-decl.c

index f4ed0001f01dc0eb687255876c90713ed58ef5e4..92f7903de6222863d49cc7cce57667461d84a150 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR c/8518
+       * c-decl.c (duplicate_decls): Outline the second definition
+       of an extern inline function in all cases.
+
 2002-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR c/8439
index 7feca7c198e29852622b750d203c25b5a2c5b49f..2c8857fc4964f596a6f856b0349cf869a3bcc946 100644 (file)
@@ -1997,9 +1997,10 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
         inline, make sure we emit debug info for the inline before we
         throw it away, in case it was inlined into a function that hasn't
         been written out yet.  */
-      if (new_is_definition && DECL_INITIAL (olddecl) && TREE_USED (olddecl))
+      if (new_is_definition && DECL_INITIAL (olddecl))
        {
-         (*debug_hooks->outlining_inline_function) (olddecl);
+         if (TREE_USED (olddecl))
+           (*debug_hooks->outlining_inline_function) (olddecl);
 
          /* The new defn must not be inline.  */
          DECL_INLINE (newdecl) = 0;