[Bug debug/120568] New: Small oversight in dwarf2out.cc:attr_checksum_ordered
tromey at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 6 14:06:22 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120568
Bug ID: 120568
Summary: Small oversight in dwarf2out.cc:attr_checksum_ordered
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: tromey at gcc dot gnu.org
Target Milestone: ---
I noticed this code in dwarf2out.cc:attr_checksum_ordered:
case dw_val_class_unsigned_const:
case dw_val_class_unsigned_const_implicit:
CHECKSUM_ULEB128 (DW_FORM_sdata);
CHECKSUM_SLEB128 ((int) at->dw_attr_val.v.val_unsigned);
break;
I think that first checksum should use DW_FORM_udata.
I would send a patch but I'm not really sure how to write
a test for this.
More information about the Gcc-bugs
mailing list