From: Martin Liska Date: Thu, 8 Mar 2018 08:52:39 +0000 (+0100) Subject: Backport r254137 X-Git-Tag: releases/gcc-6.5.0~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d95effe9cbb853fa2e8586606531367199b8420;p=thirdparty%2Fgcc.git Backport r254137 2018-03-08 Martin Liska Backport from mainline 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: r258356 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1274bfd957f..a0b9fd33c3de 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2018-03-08 Martin Liska + + Backport from mainline + 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. + 2018-03-07 Andreas Krebbel Backport from mainline diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index df4f5bd17d81..8e711fa084d3 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -9700,9 +9700,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