From ddcb1c887b91ab6e269684b17db87d825e0696d7 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 27 Oct 2017 10:34:56 +0200 Subject: [PATCH] Document --coverage and fork-like functions (PR gcov-profile/82457). 2017-10-27 Martin Liska PR gcov-profile/82457 * doc/invoke.texi: Document that one needs a non-strict ISO mode for fork-like functions to be properly instrumented. From-SVN: r254137 --- gcc/ChangeLog | 6 ++++++ gcc/doc/invoke.texi | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5f33699a34bd..02335006e025 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-10-27 Martin Liska + + PR gcov-profile/82457 + * doc/invoke.texi: Document that one needs a non-strict ISO mode + for fork-like functions to be properly instrumented. + 2017-10-27 Richard Biener PR middle-end/81659 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 2fc087a3042c..87fb9c8dfc17 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -10868,9 +10868,9 @@ Link your object files with @option{-lgcov} or @option{-fprofile-arcs} Run the program on a representative workload to generate the arc profile information. This may be repeated any number of times. You can run concurrent instances of your program, and provided that the file system -supports locking, the data files will be correctly updated. Also -@code{fork} calls are detected and correctly handled (double counting -will not happen). +supports locking, the data files will be correctly updated. Unless +a strict ISO C dialect option is in effect, @code{fork} calls are +detected and correctly handled without double counting. @item For profile-directed optimizations, compile the source files again with -- 2.47.2