public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix libgo breakage (PR tree-optimization/67284)
@ 2015-08-21 11:00 Marek Polacek
  2015-08-21 12:07 ` Richard Biener
  0 siblings, 1 reply; 13+ messages in thread
From: Marek Polacek @ 2015-08-21 11:00 UTC (permalink / raw)
  To: GCC Patches, Jeff Law, Richard Biener

This fixes the libgo breakage.  Seems I really should have removed the
edge after we split the block with null dereference after __builtin_trap 
statement so that it's unreachable.

Bootstrapped/regtested on x86_64-linux + ppc64-linux + bootstrapped on
aarch64-linux, ok for trunk?

2015-08-21  Marek Polacek  <polacek@redhat.com>

	PR tree-optimization/67284
	* gimple-ssa-isolate-paths.c (insert_trap): Remove the edge after
	we split a block.

diff --git gcc/gimple-ssa-isolate-paths.c gcc/gimple-ssa-isolate-paths.c
index ca2322d..5ac61d3 100644
--- gcc/gimple-ssa-isolate-paths.c
+++ gcc/gimple-ssa-isolate-paths.c
@@ -115,7 +115,8 @@ insert_trap (gimple_stmt_iterator *si_p, tree op)
   else
     gsi_insert_before (si_p, seq, GSI_NEW_STMT);
 
-  split_block (gimple_bb (new_stmt), new_stmt);
+  edge e = split_block (gimple_bb (new_stmt), new_stmt);
+  remove_edge (e);
   *si_p = gsi_for_stmt (stmt);
 }
 

	Marek

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-08-24  9:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-21 11:00 [PATCH] Fix libgo breakage (PR tree-optimization/67284) Marek Polacek
2015-08-21 12:07 ` Richard Biener
2015-08-21 12:50   ` Marek Polacek
2015-08-21 13:40     ` Richard Biener
2015-08-21 14:43       ` Marek Polacek
2015-08-21 15:05         ` Jeff Law
2015-08-21 15:37         ` Jeff Law
2015-08-21 16:23           ` Richard Biener
2015-08-21 16:30           ` Richard Biener
2015-08-21 16:52             ` Marek Polacek
2015-08-21 17:31               ` Richard Biener
2015-08-24  9:17                 ` Jakub Jelinek
2015-08-24  9:23                   ` Marek Polacek

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).