From: Eric Botcazou Date: Sat, 23 Nov 2002 08:20:02 +0000 (+0000) Subject: re PR c/8518 (ICE when compiling mplayer) X-Git-Tag: releases/gcc-3.2.2~259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51931f3220cf795f94846d190819ae8ea26db10e;p=thirdparty%2Fgcc.git re PR c/8518 (ICE when compiling mplayer) PR c/8518 * c-decl.c (duplicate_decls): Outline the second definition of an extern inline function in all cases. From-SVN: r59409 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4ed0001f01d..92f7903de622 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-11-23  Eric Botcazou   + + 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 PR c/8439 diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 7feca7c198e2..2c8857fc4964 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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;