diff options
author | Kwok Cheung Yeung <kcy@codesourcery.com> | 2020-01-09 16:52:23 +0000 |
---|---|---|
committer | Kwok Cheung Yeung <kcy@gcc.gnu.org> | 2020-01-09 16:52:23 +0000 |
commit | 2b8ce6216e197e6243052b121c696ac5a5455b85 (patch) | |
tree | c3ad162dfe7c8f83ddf07bf220ad1dd4ffb7e061 /gcc/lto-streamer-in.c | |
parent | 160e95dc3d73329d2367fb405ef9f0e12bd2cc7b (diff) | |
download | gcc-2b8ce6216e197e6243052b121c696ac5a5455b85.zip gcc-2b8ce6216e197e6243052b121c696ac5a5455b85.tar.gz gcc-2b8ce6216e197e6243052b121c696ac5a5455b85.tar.bz2 |
Remove inline debug markers if support not enabled on accelerator compiler
2020-01-09 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/
* lto-streamer-in.c (input_function): Remove streamed-in inline debug
markers if debug_inline_points is false.
From-SVN: r280062
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r-- | gcc/lto-streamer-in.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index a8d67c4..3e64371 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1135,8 +1135,9 @@ input_function (tree fn_decl, class data_in *data_in, we'd later ICE on. */ tree block; if (gimple_debug_inline_entry_p (stmt) - && (block = gimple_block (stmt)) - && !inlined_function_outer_scope_p (block)) + && (((block = gimple_block (stmt)) + && !inlined_function_outer_scope_p (block)) + || !debug_inline_points)) remove = true; if (is_gimple_call (stmt) && gimple_call_internal_p (stmt)) |