https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124075

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Dhruv Chawla <[email protected]>:

https://gcc.gnu.org/g:2e3d991ea1855d01b42a7661891c89c02cd6ba5e

commit r16-7956-g2e3d991ea1855d01b42a7661891c89c02cd6ba5e
Author: Dhruv Chawla <[email protected]>
Date:   Thu Feb 12 08:27:49 2026 +0000

    gcc-auto-profile: Force writing perf output to perf.data [PR124075]

    This is a partial fix for PR124075 which forces perf record to write the
    profile out to perf.data. This is required because I noticed on both
    aarch64 and x86 that it was writing out the profile to stdout at times,
    which would cause profile information to be dropped. This did not fail
    in the various create_fdas_for_* targets because they would only try and
    access the perf profiles if they existed at their paths.

    Further work for this patch is to plumb the PERF_DATA make variable into
    the perf record invocation, but that is a stage 1 thing.

    Autoprofilebootstrapped and regtested on aarch64-linux-gnu.

    Signed-off-by: Dhruv Chawla <[email protected]>

    gcc/ChangeLog:
            PR gcov-profile/124075
            * config/aarch64/gcc-auto-profile: Add "-o perf.data" to perf
            record invocation.
            * config/i386/gcc-auto-profile: Likewise.
  • [Bug gcov-profile/124075] gcc-a... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to