Commit f6f2ca8f by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/46255 (-fcompare-debug failure with -fprofile-generate)

	PR debug/46255
	* tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
	instead of gsi_last_bb.

	* gcc.dg/pr46255.c: New test.

From-SVN: r166182
parent 574e2ba2
2010-11-02 Jakub Jelinek <jakub@redhat.com>
PR debug/46255
* tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
instead of gsi_last_bb.
2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
Maxim Kuvyrkov <maxim@codesourcery.com>
2010-11-02 Jakub Jelinek <jakub@redhat.com>
PR debug/46255
* gcc.dg/pr46255.c: New test.
2010-11-02 Dodji Seketeli <dodji@redhat.com>
PR c++/46170
......
/* PR debug/46255 */
/* { dg-do compile } */
/* { dg-options "-fcompare-debug -fprofile-generate -O" } */
int bar (void);
void
foo (int i)
{
while (i)
i = bar ();
}
......@@ -6749,7 +6749,7 @@ gimple_flow_call_edges_add (sbitmap blocks)
if (check_last_block)
{
basic_block bb = EXIT_BLOCK_PTR->prev_bb;
gimple_stmt_iterator gsi = gsi_last_bb (bb);
gimple_stmt_iterator gsi = gsi_last_nondebug_bb (bb);
gimple t = NULL;
if (!gsi_end_p (gsi))
......@@ -6783,7 +6783,7 @@ gimple_flow_call_edges_add (sbitmap blocks)
if (blocks && !TEST_BIT (blocks, i))
continue;
gsi = gsi_last_bb (bb);
gsi = gsi_last_nondebug_bb (bb);
if (!gsi_end_p (gsi))
{
last_stmt = 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