Hello. Following patch adds what was said in the changes file to our documentation.
Thanks, Martin
>From 0da7f4d9a2a895e63271e9dc870814c6c7e3f419 Mon Sep 17 00:00:00 2001 From: marxin <mli...@suse.cz> Date: Wed, 25 Jan 2017 16:41:23 +0100 Subject: [PATCH] Enhance doc for -fprofile-arcs gcc/ChangeLog: 2017-01-25 Martin Liska <mli...@suse.cz> * doc/invoke.texi (-fprofile-arcs): Document profiling support for {cd}tors and C++ {cd}tors. --- gcc/doc/invoke.texi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 6a42193d106..223a0aed7af 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -10584,7 +10584,12 @@ linking. @opindex fprofile-arcs Add code so that program flow @dfn{arcs} are instrumented. During execution the program records how many times each branch and call is -executed and how many times it is taken or returns. When the compiled +executed and how many times it is taken or returns. On targets that support +constructors with priority support, the profiling properly handles constructors, +destructors and C++ constructors (and destructors) of classes which are used +as a type of a global variable. + +When the compiled program exits it saves this data to a file called @file{@var{auxname}.gcda} for each source file. The data may be used for profile-directed optimizations (@option{-fbranch-probabilities}), or for -- 2.11.0