[Bug default/27418] DW_FORM_implicit_const handling in checksum_die missing attribute hashing

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Mon Feb 15 12:24:49 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=27418

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Mark Wielaard from comment #1)
> I think you are right. The bug seems to be the handled = 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 block
> at the end after the switch statement:
> 
>       if (!handled && die->die_ck_state != CK_BAD)
>         {
>           s = t->attr[i].attr;
>           die->u.p1.die_hash = iterative_hash_object (s, die->u.p1.die_hash);
>           die->u.p1.die_hash
>             = iterative_hash (old_ptr, ptr - old_ptr, die->u.p1.die_hash);
>         }

That does however revert the attribute-value order.  So I've fixed it
differently:
https://sourceware.org/git/?p=dwz.git;a=commit;h=29823e8858b824906d2630683032491125446961

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Dwz mailing list