mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
17880c0f3981d9f8ab89959064dd52086215e5db
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 multiple files in the build system for future increments to it. Bootstrapped and regtested on aarch64-linux-gnu. Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com> 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 (cc1.fda): Add `--print-autofdo-gcov-version` to profile_merger invocation. (create_fdas_for_cc1): Add `--print-autofdo-gcov-version` to create_gcov invocations. gcc/cp/ChangeLog: * Make-lang.in (cc1plus.fda): Add `--print-autofdo-gcov-version` to profile_merger invocation. (create_fdas_for_cc1plus): Add `--print-autofdo-gcov-version` to create_gcov invocations. gcc/lto/ChangeLog: * Make-lang.in (lto1.fda): Add `--print-autofdo-gcov-version` to profile_merger invocation. (create_fdas_for_lto1): Add `--print-autofdo-gcov-version` to create_gcov invocations. gcc/testsuite/ChangeLog: * lib/profopt.exp: Invoke $GCC_UNDER_TEST with `--print-autofdo-gcov-version` before running create_gcov to get the GCOV version.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details. The directory INSTALL contains copies of the installation information as HTML and plain text. The source of this information is gcc/doc/install.texi. The installation information includes details of what is included in the GCC sources and what files GCC installs. See the file gcc/doc/gcc.texi (together with other files that it includes) for usage and porting information. An online readable version of the manual is in the files gcc/doc/gcc.info*. See http://gcc.gnu.org/bugs/ for how to report bugs usefully. Copyright years on GCC source files may be listed using range notation, e.g., 1987-2012, indicating that every year in the range, inclusive, is a copyrightable year that could otherwise be listed individually.
Description
Languages
C++
30.7%
C
30.2%
Ada
14.4%
D
6.1%
Go
5.7%
Other
12.4%