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
This commit is contained in:
Eric Botcazou 2002-11-20 10:37:08 +00:00 committed by Eric Botcazou
parent 5354730bf6
commit 02a362d982
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2002-11-20  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-20 Richard Sandiford <rsandifo@redhat.com>
* stor-layout.c (place_field): Update rli->offset as well as

View file

@ -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;