From ba662a814f8e1d726c8a2cdf4ef80750260d5ca3 Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 9 Aug 2016 21:02:24 +0000 Subject: [PATCH] Fix typo in gcov.texi * doc/gcov.texi: Change _gcov_dump to __gcov_dump and _gcov_reset to __gcov_reset. * doc/gcov-tool.texi: Fix typo. * libgcov-util.c: Fix typo and GNU coding style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239307 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/doc/gcov-tool.texi | 2 +- gcc/doc/gcov.texi | 6 +++--- libgcc/ChangeLog | 4 ++++ libgcc/libgcov-util.c | 3 ++- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b1d5ffb00ec..2c8fc557f377 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2016-08-09 Martin Liska + * doc/gcov.texi: Change _gcov_dump to __gcov_dump and + _gcov_reset to __gcov_reset. + * doc/gcov-tool.texi: Fix typo. + +2016-08-09 Martin Liska + * value-prof.c (gimple_divmod_values_to_profile): Do not instrument MOD histogram if a value is not a SSA name. diff --git a/gcc/doc/gcov-tool.texi b/gcc/doc/gcov-tool.texi index 845f14b10414..c4a9ce149fca 100644 --- a/gcc/doc/gcov-tool.texi +++ b/gcc/doc/gcov-tool.texi @@ -193,7 +193,7 @@ in the new profile. @end table @item overlap -Computer the overlap score between the two specified profile directories. +Compute the overlap score between the two specified profile directories. The overlap score is computed based on the arc profiles. It is defined as the sum of min (p1_counter[i] / p1_sum_all, p2_counter[i] / p2_sum_all), for all arc counter i, where p1_counter[i] and p2_counter[i] are two diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index 89d80499f0e6..df58df8ab61a 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -582,10 +582,10 @@ now be calculable at compile time in some instances. Because the coverage of all the uses of the inline function will be shown for the same source lines, the line counts themselves might seem inconsistent. -Long-running applications can use the @code{_gcov_reset} and @code{_gcov_dump} +Long-running applications can use the @code{__gcov_reset} and @code{__gcov_dump} facilities to restrict profile collection to the program region of -interest. Calling @code{_gcov_reset(void)} will clear all profile counters -to zero, and calling @code{_gcov_dump(void)} will cause the profile information +interest. Calling @code{__gcov_reset(void)} will clear all profile counters +to zero, and calling @code{__gcov_dump(void)} will cause the profile information collected at that point to be dumped to @file{.gcda} output files. @c man end diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index aaff31346712..866d14a17a3a 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,5 +1,9 @@ 2016-08-09 Martin Liska + * libgcov-util.c: Fix typo and GNU coding style. + +2016-08-09 Martin Liska + * Makefile.in: Remove __gcov_indirect_call_profiler. * libgcov-profiler.c (__gcov_indirect_call_profiler): Remove function. diff --git a/libgcc/libgcov-util.c b/libgcc/libgcov-util.c index 7b3bc31ec509..c8fb52d2b1b0 100644 --- a/libgcc/libgcov-util.c +++ b/libgcc/libgcov-util.c @@ -1391,7 +1391,8 @@ calculate_overlap (struct gcov_info *gcov_list1, return prg_val; } -/* Computer the overlap score of two lists of gcov_info objects PROFILE1 and PROFILE2. +/* Compute the overlap score of two lists of gcov_info objects PROFILE1 and + PROFILE2. Return 0 on success: without mismatch. Reutrn 1 on error. */ int -- 2.11.4.GIT