From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A03B43857C4A; Mon, 10 Aug 2020 05:02:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A03B43857C4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597035721; bh=doXXkyNpAmeKMTu6odkPQryGNWyiaznRyIaXzMZsf/Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pGW6RXomRTrU1wehpe9A4iPmUjzq2ree9PnjEQioy/6bWWHX8M6+glq0XQrvYRL3F rWJbtcxwyeIcPGfaE5SXh2KnYeDEDQ9NDZviGOIGRranDYkCFJCEYfFwsQK692VMci kImDOdrf6auUw/QUUnAKsmacA5tVriZrSFNtuWXo= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/96534] keep gcov intermediate format Date: Mon, 10 Aug 2020 05:02:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2020 05:02:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96534 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Martin Li=C5=A1ka --- (In reply to xlwu from comment #0) > since gcc9, the gcov did not support intermediate format and replace with > json format , our application deeply depend on intermediate format , is it > possible to restore the intermediate format ? No, the support was removed from the GCC. > or could you let me know any > workaround ?=20 Sure, it's very easy. One can get the very same information from the new JS= ON format (which is fairly simple): https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html >=20 > background : > I am a software engineer from SNPS , we have an application that extract = all > file+functions and it's related lines per test case, and we save this data > into DB which help us to predict the test to verify when RnD updated any > lines in source code before their check in. we call this application as > "smart regression".=20 That's a nice usage of the GCOV and the new format should simplify your lif= e. >=20 > now , when gcov move to json file, it increase the size a lot which affect > the efficiency to parse the data I'm aware of the limitation. Note that the JSON format is compressed with g= zip. Can you please share more statistics? > , what's worse, we had to revise our code > to support the new json format while we need to support the old format in > the same time , as our company have many products and each product have m= any > live branches , some of them still using gcc6 version. I see. As mentioned, porting to the new format should be fairly simple. >=20 > I tried to use older gcov version on the new gcc instructed gcda and gcno > file , it did not work. Please don't do it.=