aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-07-28 10:45:29 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-07-28 08:45:29 +0000
commit1225d6b1134b5eb31bcb592ac46a4d479dcb62b1 (patch)
tree65d289d14b3f9bef4364fd78f61f605d0611bbf4 /gcc/doc
parent9bd6a6aebf1d2ef3c8199d2c9a263dd47054d14c (diff)
downloadgcc-1225d6b1134b5eb31bcb592ac46a4d479dcb62b1.zip
gcc-1225d6b1134b5eb31bcb592ac46a4d479dcb62b1.tar.gz
gcc-1225d6b1134b5eb31bcb592ac46a4d479dcb62b1.tar.bz2
Introduce no_profile_instrument_function attribute
PR gcov-profile/68025 * tree-profile.c (tree_profiling): Respect no_profile_instrument_function attribute. * doc/extend.texi: Document no_profile_instrument_function attribute. PR gcov-profile/68025 * c-common.c (handle_no_profile_instrument_function_attribute): PR gcov-profile/68025 * gcc.dg/no_profile_instrument_function-attr-1.c: New test. From-SVN: r238811
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/extend.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index ad8898c..70636c1 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2853,6 +2853,12 @@ If @option{-finstrument-functions} is given, profiling function calls are
generated at entry and exit of most user-compiled functions.
Functions with this attribute are not so instrumented.
+@item no_profile_instrument_function
+@cindex @code{no_profile_instrument_function} function attribute
+The @code{no_profile_instrument_function} attribute on functions is used
+to inform the compiler that it should not process any profile feedback based
+optimization code instrumentation.
+
@item no_reorder
@cindex @code{no_reorder} function attribute
Do not reorder functions or variables marked @code{no_reorder}