summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-20 10:37:08 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-20 10:37:08 +0000
commitfbd2e379091f0574747989d9130533c84daac795 (patch)
tree95acf43b84272e0ed2ef3117774d8b4e65e05100
parent3e7192f694566dccbfae0af4f85642d89ef8727d (diff)
downloadppe42-gcc-fbd2e379091f0574747989d9130533c84daac795.tar.gz
ppe42-gcc-fbd2e379091f0574747989d9130533c84daac795.zip
PR c/8518
* 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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-decl.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b6443830759..189c310efd0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 9c3b58fc78f..5b078c0cde5 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;
OpenPOWER on IntegriCloud