public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/93401] [9/10 regression] It is no longer possible to use -fprofile-generate=<dir> on setups with different instrumentation and feedback directories
[not found] <bug-93401-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-12 11:58 ` jakub at gcc dot gnu.org
2020-04-16 12:27 ` cvs-commit at gcc dot gnu.org
2020-04-16 12:29 ` [Bug gcov-profile/93401] [9 " hubicka at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-03-12 11:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93401
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.3 |9.4
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 9.3.0 has been released, adjusting target milestone.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gcov-profile/93401] [9/10 regression] It is no longer possible to use -fprofile-generate=<dir> on setups with different instrumentation and feedback directories
[not found] <bug-93401-4@http.gcc.gnu.org/bugzilla/>
2020-03-12 11:58 ` [Bug gcov-profile/93401] [9/10 regression] It is no longer possible to use -fprofile-generate=<dir> on setups with different instrumentation and feedback directories jakub at gcc dot gnu.org
@ 2020-04-16 12:27 ` cvs-commit at gcc dot gnu.org
2020-04-16 12:29 ` [Bug gcov-profile/93401] [9 " hubicka at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-16 12:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93401
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jan Hubicka <hubicka@gcc.gnu.org>:
https://gcc.gnu.org/g:44b326839d864fc10c459916abcc97f35a9ac3de
commit r10-7756-g44b326839d864fc10c459916abcc97f35a9ac3de
Author: Jan Hubicka <jh@suse.cz>
Date: Thu Apr 16 14:25:51 2020 +0200
Make it possible to have different instrumented and feedback builds without
copying gcda files around [pr93401]
Hi,
in GCC 8 we changed -fprofile-generate=<path> to use mangled absolute paths
in
the <path> directory. This was necessary to avoid clashes of files when gcc
is
executed from different directories to build different sources of same
filename.
However this made it difficult to build projects on setups where
instrumented
build is done in one directory, feedback build in different and possibly
training happens in yet another directory structure. This happens i.e. for
Firefox builds for month or two.
This patch adds -fprofile-prefix-path that can be used to inform gcc where
the
root of build directory is and strip it form the gcda filenames.
This is similar to exisitng debug-prefix-map but without the map feature
since
it seems useless for profile data.
We spent quite some time with Maritn Liska discussing options and found no
better solution. I was looking how this work on LLVM and they produce
single
profdata file which is then transformed into kind of simple database by
llvmprofdata tool. This database keys functions by filename and symbol
name.
If you arrane two files with same name define static variable with same
symbol
name this gets messedup and result in wrong info. So I think this is not
very
good solution and preffer the extra option.
Bootstrapped/regtested x86_64-linux. I plan to commit it later today if
there
are no complains.
I suppose our manual could have some central section on profile feedback
explaining the whole setup at one place.
Honza
PR gcov-profile/93401
* common.opt (profile-prefix-path): New option.
* coverae.c: Include diagnostics.h.
(coverage_init): Strip profile prefix path.
* doc/invoke.texi (-fprofile-prefix-path): Document.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gcov-profile/93401] [9 regression] It is no longer possible to use -fprofile-generate=<dir> on setups with different instrumentation and feedback directories
[not found] <bug-93401-4@http.gcc.gnu.org/bugzilla/>
2020-03-12 11:58 ` [Bug gcov-profile/93401] [9/10 regression] It is no longer possible to use -fprofile-generate=<dir> on setups with different instrumentation and feedback directories jakub at gcc dot gnu.org
2020-04-16 12:27 ` cvs-commit at gcc dot gnu.org
@ 2020-04-16 12:29 ` hubicka at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: hubicka at gcc dot gnu.org @ 2020-04-16 12:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93401
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Summary|[9/10 regression] It is no |[9 regression] It is no
|longer possible to use |longer possible to use
|-fprofile-generate=<dir> on |-fprofile-generate=<dir> on
|setups with different |setups with different
|instrumentation and |instrumentation and
|feedback directories |feedback directories
Resolution|--- |FIXED
--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Resolved on 10 so far. It may make sense to backport this to 9 and possibly
earlier branches.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-16 12:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-93401-4@http.gcc.gnu.org/bugzilla/>
2020-03-12 11:58 ` [Bug gcov-profile/93401] [9/10 regression] It is no longer possible to use -fprofile-generate=<dir> on setups with different instrumentation and feedback directories jakub at gcc dot gnu.org
2020-04-16 12:27 ` cvs-commit at gcc dot gnu.org
2020-04-16 12:29 ` [Bug gcov-profile/93401] [9 " hubicka at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).