From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 73B743857804; Fri, 28 May 2021 11:38:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73B743857804 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1111] DOC: Update __gcov_dump documentation. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: f69a1aee157f496e6d3f373fff1b26b03bbf3409 X-Git-Newrev: d2a913c76f41692fd0bb955d1768f462133d813a Message-Id: <20210528113828.73B743857804@sourceware.org> Date: Fri, 28 May 2021 11:38:28 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2021 11:38:28 -0000 https://gcc.gnu.org/g:d2a913c76f41692fd0bb955d1768f462133d813a commit r12-1111-gd2a913c76f41692fd0bb955d1768f462133d813a Author: Martin Liska Date: Fri May 28 13:35:33 2021 +0200 DOC: Update __gcov_dump documentation. PR gcov-profile/100751 gcc/ChangeLog: * doc/gcov.texi: Revert partially a hunk that was wrong. Diff: --- gcc/doc/gcov.texi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index d076721b93c..32b51f984bc 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -887,8 +887,7 @@ 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 run-time 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 -(the function can be called just once). +information collected at that point to be dumped to @file{.gcda} output files. Instrumented applications use a static destructor with priority 99 to invoke the @code{__gcov_dump} function. Thus @code{__gcov_dump} is executed after all user defined static destructors,