]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix collection and processing of autoprofile data for target libs
authorEugene Rozenfeld <erozen@microsoft.com>
Tue, 27 Jun 2023 20:58:14 +0000 (13:58 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Thu, 29 Jun 2023 01:21:49 +0000 (18:21 -0700)
commit0d6b822f52ede5d8060d79640019e1d758ffa6ea
tree860d3cf71cff1c244224a580115c07d4bc3cc537
parent5f590ee3174cf6058ac882c3a84a96ae639349c8
Fix collection and processing of autoprofile data for target libs

cc1, cc1plus, and lto  built during STAGEautoprofile need to be built with
debug info since they are used to build target libs. -gtoggle was
turning off debug info for this stage.

create_gcov should be passed prev-gcc/cc1, prev-gcc/cc1plus, and prev-gcc/lto
instead of stage1-gcc/cc1, stage1-gcc/cc1plus, and stage1-gcc/lto when
processing profile data collected while building target libraries.

Tested on x86_64-pc-linux-gnu.

ChangeLog:

* Makefile.in: Remove -gtoggle for STAGEautoprofile
* Makefile.tpl: Remove -gtoggle for STAGEautoprofile

gcc/c/ChangeLog:

* Make-lang.in: Pass correct stage cc1 when processing
profile data collected while building target libraries

gcc/cp/ChangeLog:

* Make-lang.in: Pass correct stage cc1plus when processing
profile data collected while building target libraries

gcc/lto/ChangeLog:

* Make-lang.in: Pass correct stage lto when processing
profile data collected while building target libraries
Makefile.in
Makefile.tpl
gcc/c/Make-lang.in
gcc/cp/Make-lang.in
gcc/lto/Make-lang.in