diff options
author | Martin Liska <mliska@suse.cz> | 2017-01-27 10:58:34 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-01-27 09:58:34 +0000 |
commit | c7181f1393788572fa451bfd8d45d62c8889dd50 (patch) | |
tree | 6c75792198cd9c3ed0a0ee08b786a2c720fe3e7e /gcc | |
parent | d876f5cd0272d7d7d6842703d59a130bdaf72cca (diff) | |
download | gcc-c7181f1393788572fa451bfd8d45d62c8889dd50.zip gcc-c7181f1393788572fa451bfd8d45d62c8889dd50.tar.gz gcc-c7181f1393788572fa451bfd8d45d62c8889dd50.tar.bz2 |
Enhance doc for -fprofile-arcs
2017-01-27 Martin Liska <mliska@suse.cz>
* doc/invoke.texi (-fprofile-arcs): Document profiling support
for {cd}tors and C++ {cd}tors.
From-SVN: r244964
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e288fd5..4010377 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-27 Martin Liska <mliska@suse.cz> + + * doc/invoke.texi (-fprofile-arcs): Document profiling support + for {cd}tors and C++ {cd}tors. + 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com> * config/s390/s390.md ("*setmem_long_and") diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index d388d01..c205023 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, 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 |