From: Eric Botcazou Date: Wed, 20 Nov 2002 10:37:08 +0000 (+0000) Subject: re PR c/8518 (ICE when compiling mplayer) X-Git-Tag: releases/gcc-3.3.0~1721 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02a362d9826f4ea8868e7e56ac145a523823022e;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: r59302 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b64438307591..189c310efd09 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-11-20  Eric Botcazou   + + PR c/8518 + * c-decl.c (duplicate_decls): Outline the second definition + of an extern inline function in all cases. + 2002-11-20 Richard Sandiford * stor-layout.c (place_field): Update rli->offset as well as diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 9c3b58fc78fa..5b078c0cde52 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1474,9 +1474,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;