diff options
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index a5029a1..dd9c389 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1123,7 +1123,7 @@ branch_prob (void) is not computed twice. */ if (last && gimple_has_location (last) - && e->goto_locus != UNKNOWN_LOCATION + && !IS_UNKNOWN_LOCATION (e->goto_locus) && !single_succ_p (bb) && (LOCATION_FILE (e->goto_locus) != LOCATION_FILE (gimple_location (last)) @@ -1133,7 +1133,6 @@ branch_prob (void) basic_block new_bb = split_edge (e); edge ne = single_succ_edge (new_bb); ne->goto_locus = e->goto_locus; - ne->goto_block = e->goto_block; } if ((e->flags & (EDGE_ABNORMAL | EDGE_ABNORMAL_CALL)) && e->dest != EXIT_BLOCK_PTR) @@ -1345,7 +1344,7 @@ branch_prob (void) /* Notice GOTO expressions eliminated while constructing the CFG. */ if (single_succ_p (bb) - && single_succ_edge (bb)->goto_locus != UNKNOWN_LOCATION) + && !IS_UNKNOWN_LOCATION (single_succ_edge (bb)->goto_locus)) { expanded_location curr_location = expand_location (single_succ_edge (bb)->goto_locus); |