diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff8fc9a21b9f..44883d0b303a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-11-26 Richard Guenther + + PR tree-optimization/46528 + PR debug/46338 + * profile.c (branch_prob): Do not split blocks based on locations + from debug statements. + 2010-11-26 Jakub Jelinek PR middle-end/46647 diff --git a/gcc/profile.c b/gcc/profile.c index ffcd802375ff..b8a43de3463e 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -940,7 +940,8 @@ branch_prob (void) for (gsi = gsi_last_bb (bb); !gsi_end_p (gsi); gsi_prev (&gsi)) { last = gsi_stmt (gsi); - if (gimple_has_location (last)) + if (!is_gimple_debug (last) + && gimple_has_location (last)) break; }