From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73691 invoked by alias); 21 Apr 2017 20:27:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 73667 invoked by uid 89); 21 Apr 2017 20:27:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_1,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: EUR02-VE1-obe.outbound.protection.outlook.com Received: from mail-oln040092069027.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.92.69.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Apr 2017 20:27:00 +0000 Received: from VE1EUR02FT010.eop-EUR02.prod.protection.outlook.com (10.152.12.60) by VE1EUR02HT025.eop-EUR02.prod.protection.outlook.com (10.152.13.239) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14; Fri, 21 Apr 2017 20:26:59 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com (10.152.12.53) by VE1EUR02FT010.mail.protection.outlook.com (10.152.12.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.14 via Frontend Transport; Fri, 21 Apr 2017 20:26:59 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com ([fe80::a806:64f0:6377:f3ea]) by AM4PR0701MB2162.eurprd07.prod.outlook.com ([fe80::a806:64f0:6377:f3ea%19]) with mapi id 15.01.1047.017; Fri, 21 Apr 2017 20:26:59 +0000 From: Bernd Edlinger To: Joseph Myers CC: "gcc-patches@gcc.gnu.org" , Nathan Sidwell , Jan Hubicka Subject: Re: [PATCH] Force use of absolute path names for gcov Date: Fri, 21 Apr 2017 20:57:00 -0000 Message-ID: References: In-Reply-To: authentication-results: codesourcery.com; dkim=none (message not signed) header.d=none;codesourcery.com; dmarc=none action=none header.from=hotmail.de; x-incomingtopheadermarker: OriginalChecksum:4D1450A03C3C7AF5107B56AE5AF149ED8C37374BB735085A6F08DA337AB6818E;UpperCasedChecksum:09F179FF1C156E7F4965A681693AFEDAA70272FEE5C1FA6F4F9CDE506EC59D80;SizeAsReceived:8191;Count:40 x-ms-exchange-messagesentrepresentingtype: 1 x-microsoft-exchange-diagnostics: 1;VE1EUR02HT025;5:rlR99QqJz+P35PAGU8KpRaKrclMRDV2nGuR+2xQ/oKgZ+oprciV8C1bEvijQl3KoP5yAwqbAiKzqWp8KD0hc22hrGWi0wbkddr8DR1OCIVUV5oT16NG6/773/jdcdruDG1eFshSd0KAMTXn+mwtBfA==;24:DvlatNtEoqGyeDTvTRUZx9aQX+sXtnXmNNbrmXmSCGqwFYBddPnjQaduBHyCcauhP0VK7QOB0go2HCN6NA4ZY1z52ajwMig3bK0oNNiF7Ww=;7:nz+SDcy3zFPHJpQZkIz+Kp0Ex86hm1B36RbwX9RkTZ5uv+Cn7VvSZAyjabKzINpHutbGjFFH3d5i58aEzCEliFmvV0Mj2U9aXsinYGKP3ZvOr7Hnk+J111Pkvpd9+UhvYKIIneb6C4cHtburyUiSUOQUQKsg1wxtMAjdJzoUTpIldS0Vi0AfVEzep9emn08xq+vdC0iuAhetcHdiquBGeT44Sc2aTKUFutDU32BH+aTY9+J78mT9dWYE7/NCAgsEmMpX1PlLBqWer2IRuMPZsWXdvfb91AMjVDCFvf9ECTy+Sr9J/xRtq2at6GTiwTcb x-incomingheadercount: 40 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:VE1EUR02HT025;H:AM4PR0701MB2162.eurprd07.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: b96a56fb-d5b9-4a00-445b-08d488f4c299 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1603101448)(1601125374)(1701031045);SRVR:VE1EUR02HT025; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:VE1EUR02HT025;BCL:0;PCL:0;RULEID:;SRVR:VE1EUR02HT025; x-forefront-prvs: 02843AA9E0 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2017 20:26:59.5514 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT025 X-SW-Source: 2017-04/txt/msg00967.txt.bz2 On 04/21/17 21:50, Joseph Myers wrote: > On Fri, 21 Apr 2017, Bernd Edlinger wrote: > >> So I would like to add a -fprofile-abs-path option that >> forces absolute path names in gcno files, which allows gcov >> to get the true canonicalized source name. > > I don't see any actual documentation of this option in the patch (you add > it to the summary list of options, and mention it in text under the > documentation of --coverage, but don't have any actual @item > -fprofile-abs-path / @opindex fprofile-abs-path paragraph with text > describing what the option does). > Ah yes, thanks. So I'll add one more sentence to invoke.texi: @@ -10696,6 +10713,12 @@ generate test coverage data. Coverage data matches the source files more closely if you do not optimize. +@item -fprofile-abs-path +@opindex fprofile-abs-path +Automatically convert relative source file names to absolute path names +in the @file{.gcno} files. This allows @command{gcov} to find the correct +sources in projects with multiple directories. + @item -fprofile-dir=3D@var{path} @opindex fprofile-dir Bernd.