Commit 7dd536f1 by Richard Guenther Committed by Richard Biener

re PR middle-end/44777 (ICE: SIGSEGV with -fprofile-use in gcc.c-torture/execute/comp-goto-2.c)

2010-07-02  Richard Guenther  <rguenther@suse.de>

	PR middle-end/44777
	* tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.

From-SVN: r161694
parent 84c2219a
2010-07-02 Richard Guenther <rguenther@suse.de>
PR middle-end/44777
* tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2010-07-02 Jan Hubicka <jh@suse.cz>
PR middle-end/44706
......
......@@ -6626,7 +6626,7 @@ static bool
gimple_block_ends_with_call_p (basic_block bb)
{
gimple_stmt_iterator gsi = gsi_last_nondebug_bb (bb);
return is_gimple_call (gsi_stmt (gsi));
return !gsi_end_p (gsi) && is_gimple_call (gsi_stmt (gsi));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment