* c-decl.c (duplicate_decls): Outline the second definition
of an extern inline function in all cases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59302
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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;