From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D57503858C2D; Mon, 27 Nov 2023 00:44:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D57503858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701045852; bh=15h9gvXetE/ULA3TXZiqJQbxiq+J4qgBkkdY1oJ88FY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GBE13JNWeuHCKF8peyCTAxPwCJIVqg+kWF+1SYuaPgo8NaKkSJwFQ0qVpUK9Mf2Tc /lQMJ9jFW+9i185BAzEpVsdjGHQ2owsXE2VzAeQFJFLTQnSEPlFQPDJlBzkYKdByZ4 FrHGHrcE7TyA/Sxi+6RgEaAbwbLqf+knMUup05Ew= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/112717] .gcda profiles compatibility guarantees between GCC versions Date: Mon, 27 Nov 2023 00:44:12 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112717 --- Comment #1 from Andrew Pinski --- I thought this was documented but I don't see. There is no guarantee for forward or backwards compatibility at all. In fact iirc there is a version stored in the files to make sure the correct version is used with the versi= on of tools/compiler. Plus not only different versions of the compiler changes profile data but a= lso different preprocessed sources could change the profile data (that even mea= ns compiler options which change macros, e.g. -D* and even some -f/-m options define some macros that could change the sources being processed).=