[Bug gcov-profile/123923] autoprofiledbootstrap seems to profile make instead of cc1/cc1plus/lto1
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 9 10:50:18 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123923
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Dhruv Chawla <dhruvc@gcc.gnu.org>:
https://gcc.gnu.org/g:f164ed904503c9eff5c15977526f7f036d247963
commit r16-7955-gf164ed904503c9eff5c15977526f7f036d247963
Author: Dhruv Chawla <dhruvc@nvidia.com>
Date: Thu Feb 12 03:57:51 2026 +0000
gcc-auto-profile: Force --inherit flag for perf record [PR123923]
This works around a bug I was seeing while testing autoprofiledbootstrap
where it appeared that perf record was only recording the make
invocation and not any of the child processes. I did not find any
configuration that would make it do so, so forcing the flag in
gcc-auto-profile will make sure that it doesn't happen regardless of
perf's settings.
Bootstrapped and regtested on aarch64-linux-gnu.
Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:
PR gcov-profile/123923
* config/aarch64/gcc-auto-profile: Add --inherit to perf record
flags.
* config/i386/gcc-auto-profile: Likewise.
More information about the Gcc-bugs
mailing list