From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id DAAAE3858436; Sat, 12 Aug 2023 01:02:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAAAE3858436 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix collection and processing of autoprofile data for target libs X-Act-Checkin: binutils-gdb X-Git-Author: Eugene Rozenfeld X-Git-Refname: refs/heads/master X-Git-Oldrev: 5ce0ff9b5464a030ea956473add180db42dcd513 X-Git-Newrev: d3d2eb0cacfb6484a6252c93e644e546a6505087 Message-Id: <20230812010204.DAAAE3858436@sourceware.org> Date: Sat, 12 Aug 2023 01:02:04 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2023 01:02:05 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd3d2eb0cacfb= 6484a6252c93e644e546a6505087 commit d3d2eb0cacfb6484a6252c93e644e546a6505087 Author: Eugene Rozenfeld Date: Mon Aug 7 13:07:41 2023 +0200 Fix collection and processing of autoprofile data for target libs =20 cc1, cc1plus, and lto built during STAGEautoprofile need to be built w= ith debug info since they are used to build target libs. -gtoggle was turning off debug info for this stage. =20 create_gcov should be passed prev-gcc/cc1, prev-gcc/cc1plus, and prev-g= cc/lto instead of stage1-gcc/cc1, stage1-gcc/cc1plus, and stage1-gcc/lto when processing profile data collected while building target libraries. =20 Tested on x86_64-pc-linux-gnu. =20 * Makefile.tpl: Remove -gtoggle for STAGEautoprofile Diff: --- Makefile.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.tpl b/Makefile.tpl index 45facbac6a9..4450f696766 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -560,7 +560,7 @@ STAGEtrain_TFLAGS =3D $(filter-out -fchecking=3D1,$(STA= GE3_TFLAGS)) STAGEfeedback_CFLAGS =3D $(STAGE4_CFLAGS) -fprofile-use -fprofile-reproduc= ible=3Dparallel-runs STAGEfeedback_TFLAGS =3D $(STAGE4_TFLAGS) =20 -STAGEautoprofile_CFLAGS =3D $(STAGE2_CFLAGS) -g +STAGEautoprofile_CFLAGS =3D $(filter-out -gtoggle,$(STAGE2_CFLAGS)) -g STAGEautoprofile_TFLAGS =3D $(STAGE2_TFLAGS) =20 STAGEautofeedback_CFLAGS =3D $(STAGE3_CFLAGS)