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:
parent
5354730bf6
commit
02a362d982
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue