aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorEugene Rozenfeld <erozen@microsoft.com>2023-06-27 13:58:14 -0700
committerEugene Rozenfeld <erozen@microsoft.com>2023-06-28 18:21:49 -0700
commit0d6b822f52ede5d8060d79640019e1d758ffa6ea (patch)
tree860d3cf71cff1c244224a580115c07d4bc3cc537 /gcc/c
parent5f590ee3174cf6058ac882c3a84a96ae639349c8 (diff)
downloadgcc-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/c')
-rw-r--r--gcc/c/Make-lang.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c/Make-lang.in b/gcc/c/Make-lang.in
index 20840ac..79bc0df 100644
--- a/gcc/c/Make-lang.in
+++ b/gcc/c/Make-lang.in
@@ -113,10 +113,10 @@ create_fdas_for_cc1: ../stage1-gcc/cc1$(exeext) ../prev-gcc/$(PERF_DATA)
echo $$perf_path; \
if [ -f $$perf_path ]; then \
profile_name=cc1_$$component_in_prev_target.fda; \
- $(CREATE_GCOV) -binary ../stage1-gcc/cc1$(exeext) -gcov $$profile_name -profile $$perf_path -gcov_version 2; \
+ $(CREATE_GCOV) -binary ../prev-gcc/cc1$(exeext) -gcov $$profile_name -profile $$perf_path -gcov_version 2; \
fi; \
done;
-#
+#
# Build hooks:
c.info: