From e99f078847a24e13a99991c6cd3ccd8f4bbaeb71 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 26 Nov 2010 09:49:47 +0000 Subject: re PR bootstrap/46528 (profiledbootstrap failure) 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. From-SVN: r167171 --- gcc/profile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/profile.c') diff --git a/gcc/profile.c b/gcc/profile.c index ffcd802..b8a43de 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; } -- cgit v1.1