aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-06-05 14:10:22 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-06-05 12:10:22 +0000
commit97a53d1d04d5dc36f64c0897ff0c49c78ef83ffc (patch)
treed088d0aa4d340c24d5eedc905d9cd05b01c035ba /gcc/doc
parent066c4268db267ef6d88498b001b143db404e495e (diff)
downloadgcc-97a53d1d04d5dc36f64c0897ff0c49c78ef83ffc.zip
gcc-97a53d1d04d5dc36f64c0897ff0c49c78ef83ffc.tar.gz
gcc-97a53d1d04d5dc36f64c0897ff0c49c78ef83ffc.tar.bz2
Support variables in expansion of -fprofile-generate option (PR gcov-profile/47618).
2018-06-05 Martin Liska <mliska@suse.cz> PR gcov-profile/47618 * doc/invoke.texi: Document how -fprofile-dir format is extended. 2018-06-05 Martin Liska <mliska@suse.cz> PR gcov-profile/47618 * libgcov-driver-system.c (replace_filename_variables): New function. (gcov_exit_open_gcda_file): Use it. From-SVN: r261199
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 169dd44..3d767b6 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -11343,6 +11343,20 @@ and its related options. Both absolute and relative paths can be used.
By default, GCC uses the current directory as @var{path}, thus the
profile data file appears in the same directory as the object file.
+When an executable is run in a massive parallel environment, it is recommended
+to save profile to different folders. That can be done with variables
+in @var{path} that are exported during run-time:
+
+@table @gcctabopt
+
+@item %p
+process ID.
+
+@item %q@{VAR@}
+value of environment variable @var{VAR}
+
+@end table
+
@item -fprofile-generate
@itemx -fprofile-generate=@var{path}
@opindex fprofile-generate