From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF2AB3948A8D; Mon, 15 Feb 2021 12:24:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF2AB3948A8D From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/27418] DW_FORM_implicit_const handling in checksum_die missing attribute hashing Date: Mon, 15 Feb 2021 12:24:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2021 12:24:49 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27418 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Tom de Vries --- (In reply to Mark Wielaard from comment #1) > I think you are right. The bug seems to be the handled =3D true; That is = not > true, we haven't yet handled the attribute completely. We just added the > value to the hash. The code should then continue so it ends up at the blo= ck > at the end after the switch statement: >=20 > if (!handled && die->die_ck_state !=3D CK_BAD) > { > s =3D t->attr[i].attr; > die->u.p1.die_hash =3D iterative_hash_object (s, die->u.p1.die_= hash); > die->u.p1.die_hash > =3D iterative_hash (old_ptr, ptr - old_ptr, die->u.p1.die_has= h); > } That does however revert the attribute-value order. So I've fixed it differently: https://sourceware.org/git/?p=3Ddwz.git;a=3Dcommit;h=3D29823e8858b824906d26= 30683032491125446961 --=20 You are receiving this mail because: You are on the CC list for the bug.=