On Mon, 16 Mar 2026, Dhruv Chawla wrote:

> On 10/03/26 16:00, Jan Hubicka wrote:
> > External email: Use caution opening links or attachments
> > 
> > 
> >> From: Dhruv Chawla <[email protected]>
> >>
> >> This option prints the current version of GCOV that is being used by the
> >> AutoFDO infrastructure. This avoids the need to bump the number across
> >> mutiple files in the build system for future increments to it.
> >>
> >> Bootstrapped and regtested on aarch64-linux-gnu.
> >>
> >> Signed-off-by: Dhruv Chawla <[email protected]>
> >>
> >> gcc/ChangeLog:
> >>
> >>        * Makefile.in (all.fda): Add `--print-autofdo-gcov-version` to
> >>        profile_merger invocation.
> >>        * auto-profile.cc (AUTO_PROFILE_VERSION): Move from here ...
> >>        * auto-profile.h (AUTO_PROFILE_VERSION): ... to here.
> >>        * common.opt: Add -print-autofdo-gcov-version and
> >>        --print-autofdo-gcov-version.
> >>        * doc/invoke.texi: Document the options.
> >>        * gcc.cc: Add include for auto-profile.h.
> >>        (driver_handle_option): Add OPT_print_autofdo_gcov_version.
> >>        (driver::maybe_print_and_exit): Handle the option.
> >>
> >> gcc/c/ChangeLog:
> >>
> >>        * Make-lang.in: Add `--print-autofdo-gcov-version` to
> >>        profile_merger and create_gcov invocations.
> >>
> >> gcc/cp/ChangeLog:
> >>
> >>        * Make-lang.in: Likewise.
> >>
> >> gcc/lto/ChangeLog:
> >>
> >>        * Make-lang.in: Likewise.
> >>
> >> gcc/testsuite/ChangeLog:
> >>
> >>        * lib/profopt.exp: Invoke $GCC_UNDER_TEST with
> >>        `--print-autofdo-gcov-version` before running create_gcov to get
> >>        the GCOV version.
> > OK,
> > thanks!
> 
> 
> (CC += Richi)
> 
> I am planning on committing this in the next few days. Will wait for some
> time for Richi to respond whether this looks okay for 16 or if I should wait
> until 17.

LGTM for 16.

Richard.

-- 
Richard Biener <[email protected]>
SUSE Software Solutions Germany GmbH,
Frankenstrasse 146, 90461 Nuernberg, Germany;
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)

Reply via email to