diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-06 06:17:22 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-06 06:17:22 +0000 |
commit | b39a37c3909854ffd3c778d45474902e6699b221 (patch) | |
tree | 134d9160405536ff36be7452764169f13a4466e5 /gcc/profile.c | |
parent | dc3fdc3abf0a97998996f44874659d4bcce5a62f (diff) | |
download | gcc-b39a37c3909854ffd3c778d45474902e6699b221.tar.gz |
* profile.c (branch_prob): Move declaration of local variable. Remove
obsolete ??? comment. Expand the location explicitly instead of using
the LOCATION_FILE and LOCATION_LINE macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172019 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index c5cada9e604..fd377486b85 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -1123,16 +1123,13 @@ branch_prob (void) /* Line numbers. */ if (coverage_begin_output ()) { - gcov_position_t offset; - /* Initialize the output. */ output_location (NULL, 0, NULL, NULL); FOR_EACH_BB (bb) { gimple_stmt_iterator gsi; - - offset = 0; + gcov_position_t offset = 0; if (bb == ENTRY_BLOCK_PTR->next_bb) { @@ -1150,15 +1147,14 @@ branch_prob (void) &offset, bb); } - /* Notice GOTO expressions we eliminated while constructing the - CFG. */ + /* Notice GOTO expressions eliminated while constructing the CFG. */ if (single_succ_p (bb) && single_succ_edge (bb)->goto_locus != UNKNOWN_LOCATION) { - location_t curr_location = single_succ_edge (bb)->goto_locus; - /* ??? The FILE/LINE API is inconsistent for these cases. */ - output_location (LOCATION_FILE (curr_location), - LOCATION_LINE (curr_location), &offset, bb); + expanded_location curr_location + = expand_location (single_succ_edge (bb)->goto_locus); + output_location (curr_location.file, curr_location.line, + &offset, bb); } if (offset) |