aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-10-02 10:07:29 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-10-02 10:07:29 +0000
commitcd6ae11750ba45a574cb1265aeb6ca08d30c2d7c (patch)
tree7dd4bee5bc2bf1d40257952807de527fe1bf71a3 /gcc/tree-inline.c
parent491ec3dfa91309cf6d1ece14c91217bb54ba5602 (diff)
downloadgcc-cd6ae11750ba45a574cb1265aeb6ca08d30c2d7c.zip
gcc-cd6ae11750ba45a574cb1265aeb6ca08d30c2d7c.tar.gz
gcc-cd6ae11750ba45a574cb1265aeb6ca08d30c2d7c.tar.bz2
tree-inline.c (expand_call_inline): Use the location of the callee declaration for the inline-entry marker.
2018-10-02 Richard Biener <rguenther@suse.de> * tree-inline.c (expand_call_inline): Use the location of the callee declaration for the inline-entry marker. * final.c (notice_source_line): Remove special-casing of NOTE_INSN_INLINE_ENTRY. From-SVN: r264778
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 6b5ef36..ff8ee8c 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -4592,7 +4592,8 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id)
{
gimple_stmt_iterator si = gsi_last_bb (bb);
gsi_insert_after (&si, gimple_build_debug_inline_entry
- (id->block, input_location), GSI_NEW_STMT);
+ (id->block, DECL_SOURCE_LOCATION (id->src_fn)),
+ GSI_NEW_STMT);
}
if (DECL_INITIAL (fn))