public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/gccgo] Remove inline debug markers if support not enabled on accelerator compiler
@ 2020-01-23  0:09 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2020-01-23  0:09 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2b8ce6216e197e6243052b121c696ac5a5455b85

commit 2b8ce6216e197e6243052b121c696ac5a5455b85
Author: Kwok Cheung Yeung <kcy@codesourcery.com>
Date:   Thu Jan 9 16:52:23 2020 +0000

    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

Diff:
---
 gcc/ChangeLog         | 5 +++++
 gcc/lto-streamer-in.c | 5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 706bb93..7250b0d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-09  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+	* lto-streamer-in.c (input_function): Remove streamed-in inline debug
+	markers	if debug_inline_points is false.
+
 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
 
 	* 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 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))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-23  0:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23  0:09 [gcc/devel/gccgo] Remove inline debug markers if support not enabled on accelerator compiler Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).