http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46528
Uros Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #20 from Uros Bizjak <ubizjak at gmail dot com> 2010-11-25 19:34:03 UTC --- (In reply to comment #17) > Please try > > Index: gcc/profile.c > =================================================================== > --- gcc/profile.c (revision 167127) > +++ gcc/profile.c (working copy) > @@ -940,7 +943,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; > } Great, this bootstrapped OK for -enable-languages=c.