Commit 6a60530d by Andreas Krebbel Committed by Ulrich Weigand

tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.

2005-12-18  Andreas Krebbel  <krebbel1@de.ibm.com>

	* tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.

	* gcc.dg/20051201-1.c: New test.

From-SVN: r108755
parent e7f79e12
2005-12-18 Andreas Krebbel <krebbel1@de.ibm.com>
* tree-cfg.c (tree_flow_call_edges_add): Check for empty basic blocks.
2005-12-18 Steven Bosscher <stevenb@suse.de>
* gcse.c (gcse_main, bypass_jumps): Fix non-GNU-isms from
......
2005-12-18 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.dg/20051201-1.c: New test.
2005-12-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25018
/* This failed with profiling due to a missing check in
tree_flow_call_edges_add. */
/* { dg-do compile } */
/* { dg-options "-O1 -fprofile-generate" } */
static __attribute__ ((always_inline)) void
baz ()
{
}
static __attribute__ ((always_inline)) int
bar ()
{
out:
baz ();
goto out;
}
int
foo ()
{
long res;
res = bar ();
}
......@@ -4769,7 +4769,7 @@ tree_flow_call_edges_add (sbitmap blocks)
if (!bsi_end_p (bsi))
t = bsi_stmt (bsi);
if (need_fake_edge_p (t))
if (t && need_fake_edge_p (t))
{
edge e;
......
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