From: Alexandre Oliva Date: Tue, 21 Mar 2017 18:28:06 +0000 (+0000) Subject: [PR63238] include alignment debug information in DIE checksum X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7fc45a78a9ca5831cc6d51c2795e91ad7c5e0f2;p=gcc.git [PR63238] include alignment debug information in DIE checksum Add DW_AT_alignment to the DIE checksum. for gcc/ChangeLog PR debug/63238 * dwarf2out.c (struct checksum_attributes): Add at_alignment. (collect_checksum_attributes): Set it. (die_checksum_ordered): Use it. From-SVN: r246331 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4706704ade5..7070fabd632 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-03-21 Alexandre Oliva + + PR debug/63238 + * dwarf2out.c (struct checksum_attributes): Add at_alignment. + (collect_checksum_attributes): Set it. + (die_checksum_ordered): Use it. + 2017-03-21 Bill Schmidt PR tree-optimization/79908 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0bbb90ed3aa..6ce8fbc95f1 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -6633,6 +6633,7 @@ struct checksum_attributes dw_attr_node *at_friend; dw_attr_node *at_accessibility; dw_attr_node *at_address_class; + dw_attr_node *at_alignment; dw_attr_node *at_allocated; dw_attr_node *at_artificial; dw_attr_node *at_associated; @@ -6706,6 +6707,9 @@ collect_checksum_attributes (struct checksum_attributes *attrs, dw_die_ref die) case DW_AT_address_class: attrs->at_address_class = a; break; + case DW_AT_alignment: + attrs->at_alignment = a; + break; case DW_AT_allocated: attrs->at_allocated = a; break; @@ -6912,6 +6916,7 @@ die_checksum_ordered (dw_die_ref die, struct md5_ctx *ctx, int *mark) CHECKSUM_ATTR (attrs.at_vtable_elem_location); CHECKSUM_ATTR (attrs.at_type); CHECKSUM_ATTR (attrs.at_friend); + CHECKSUM_ATTR (attrs.at_alignment); /* Checksum the child DIEs. */ c = die->die_child;