From: Kwok Cheung Yeung Date: Thu, 9 Jan 2020 16:52:23 +0000 (+0000) Subject: Remove inline debug markers if support not enabled on accelerator compiler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b8ce6216e197e6243052b121c696ac5a5455b85;p=gcc.git Remove inline debug markers if support not enabled on accelerator compiler 2020-01-09 Kwok Cheung Yeung gcc/ * lto-streamer-in.c (input_function): Remove streamed-in inline debug markers if debug_inline_points is false. From-SVN: r280062 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 706bb934911..7250b0d1ded 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-01-09 Kwok Cheung Yeung + + * lto-streamer-in.c (input_function): Remove streamed-in inline debug + markers if debug_inline_points is false. + 2020-01-09 Richard Sandiford * config.gcc (aarch64*-*-*): Add aarch64-sve-builtins-sve2.o to diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index a8d67c41079..3e64371094e 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))