X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fgcov.c;h=01e1a1dd77e93763713f256094a3eb3d09b5fadf;hb=3cfec666406d71f8b7d7abcf9883c64117453c15;hp=fbc3d00e898dcf2897c7df38dc859232663a0ef7;hpb=a2dd943a80f4e3091f7f992594f6e3e01ce522fb;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/gcov.c b/gcc/gcov.c index fbc3d00e898..01e1a1dd77e 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -687,7 +687,7 @@ create_program_flow_graph (bptr) __read_long (&function_name_len, bbg_file, 4); function_name = xmalloc (function_name_len + 1); fread (function_name, 1, function_name_len + 1, bbg_file); - + /* Skip padding. */ tmp = (function_name_len + 1) % 4; @@ -695,7 +695,7 @@ create_program_flow_graph (bptr) fseek (bbg_file, 4 - tmp, SEEK_CUR); __read_long (&tmp, bbg_file, 4); /* ignore -1. */ - + /* Read the cfg checksum. */ __read_long (&cfg_checksum, bbg_file, 4); @@ -729,7 +729,7 @@ create_program_flow_graph (bptr) __read_long (&flag_bits, bbg_file, 4); if (flag_bits & 0x1) arcptr->on_tree++; - else + else instr_arcs++; arcptr->fake = !! (flag_bits & 0x2); arcptr->fall_through = !! (flag_bits & 0x4); @@ -1063,9 +1063,9 @@ calculate_branch_probs (current_graph, block_num, branch_probs, last_line_num) a_ptr = (struct arcdata *) xmalloc (sizeof (struct arcdata)); a_ptr->total = total; if (total == 0) - a_ptr->hits = 0; + a_ptr->hits = 0; else - a_ptr->hits = arcptr->arc_count; + a_ptr->hits = arcptr->arc_count; a_ptr->call_insn = arcptr->fake; if (output_function_summary) @@ -1565,8 +1565,8 @@ output_data () ((a_ptr->hits * 100) + (a_ptr->total >> 1)) / a_ptr->total); - fnotice (gcov_file, - "branch %d taken = %s%%\n", i, c); + fnotice (gcov_file, + "branch %d taken = %s%%\n", i, c); } } }