https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79891
--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Fri Apr 28 12:51:05 2017 New Revision: 247374 URL: https://gcc.gnu.org/viewcvs?rev=247374&root=gcc&view=rev Log: Make gcno more precise about BBs really belonging to a line (PR gcov-profile/79891). 2017-04-28 Martin Liska <mli...@suse.cz> PR gcov-profile/79891 * gcov.c (add_line_counts): Assign BBs to lines just if the BB is marked by compiler as living on a line. (get_cycles_count): Remove usage of the union. (output_intermediate_file): Likewise. (find_source): Fix GNU coding style. (accumulate_line_counts): Remove old non-all block mode. (output_lines): Remove usage of the union. * profile.c (output_location): Include all BBs, even if belonging to a same line (and file) as a previous BB. 2017-04-28 Martin Liska <mli...@suse.cz> PR gcov-profile/79891 * gcc.misc-tests/gcov-17.c: New test. * gcc.misc-tests/gcov-18.c: New test. Added: trunk/gcc/testsuite/gcc.misc-tests/gcov-17.c trunk/gcc/testsuite/gcc.misc-tests/gcov-18.c Modified: trunk/gcc/ChangeLog trunk/gcc/gcov.c trunk/gcc/profile.c trunk/gcc/testsuite/ChangeLog