diff options
author | Eugene Rozenfeld <erozen@microsoft.com> | 2023-06-27 13:58:14 -0700 |
---|---|---|
committer | Eugene Rozenfeld <erozen@microsoft.com> | 2023-06-28 18:21:49 -0700 |
commit | 0d6b822f52ede5d8060d79640019e1d758ffa6ea (patch) | |
tree | 860d3cf71cff1c244224a580115c07d4bc3cc537 /gcc/lto | |
parent | 5f590ee3174cf6058ac882c3a84a96ae639349c8 (diff) | |
download | gcc-0d6b822f52ede5d8060d79640019e1d758ffa6ea.zip gcc-0d6b822f52ede5d8060d79640019e1d758ffa6ea.tar.gz gcc-0d6b822f52ede5d8060d79640019e1d758ffa6ea.tar.bz2 |
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
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/Make-lang.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto/Make-lang.in b/gcc/lto/Make-lang.in index 4f60251..98aa9f4 100644 --- a/gcc/lto/Make-lang.in +++ b/gcc/lto/Make-lang.in @@ -130,7 +130,7 @@ create_fdas_for_lto1: ../stage1-gcc/lto1$(exeext) ../prev-gcc/$(PERF_DATA) echo $$perf_path; \ if [ -f $$perf_path ]; then \ profile_name=lto1_$$component_in_prev_target.fda; \ - $(CREATE_GCOV) -binary ../stage1-gcc/lto1$(exeext) -gcov $$profile_name -profile $$perf_path -gcov_version 2; \ + $(CREATE_GCOV) -binary ../prev-gcc/lto1$(exeext) -gcov $$profile_name -profile $$perf_path -gcov_version 2; \ fi; \ done; |