summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-20 22:59:13 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-20 22:59:13 +0000
commitbef7f001d7e98da9f9442bb7de455b64c2f4b181 (patch)
tree69ae2273b21bfda82dcfcc65ee1f37e620389784 /gcc/c-decl.c
parenta34e1c9660188df4cc9b52feed7ecb3e5c8e0a2f (diff)
downloadgcc-bef7f001d7e98da9f9442bb7de455b64c2f4b181.tar.gz
PR debug/37020
* c-decl.c (merge_decls): Don't call outlining_inline_function hook. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141253 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index ee8e45e1c08..eba616199b6 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -1775,17 +1775,8 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
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))
- {
- if (TREE_USED (olddecl)
- /* We never inline re-defined extern inline functions.
- FIXME: This would be better handled by keeping both functions
- as separate declarations. */
- && cgraph_function_possibly_inlined_p (olddecl))
- (*debug_hooks->outlining_inline_function) (olddecl);
-
- /* The new defn must not be inline. */
- DECL_UNINLINABLE (newdecl) = 1;
- }
+ /* The new defn must not be inline. */
+ DECL_UNINLINABLE (newdecl) = 1;
else
{
/* If either decl says `inline', this fn is inline, unless