Commit c7181f13 by Martin Liska Committed by Martin Liska

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
parent d876f5cd
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> 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
* config/s390/s390.md ("*setmem_long_and") * config/s390/s390.md ("*setmem_long_and")
......
...@@ -10584,7 +10584,12 @@ linking. ...@@ -10584,7 +10584,12 @@ linking.
@opindex fprofile-arcs @opindex fprofile-arcs
Add code so that program flow @dfn{arcs} are instrumented. During Add code so that program flow @dfn{arcs} are instrumented. During
execution the program records how many times each branch and call is 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 program exits it saves this data to a file called
@file{@var{auxname}.gcda} for each source file. The data may be used for @file{@var{auxname}.gcda} for each source file. The data may be used for
profile-directed optimizations (@option{-fbranch-probabilities}), or for profile-directed optimizations (@option{-fbranch-probabilities}), or for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment