aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2017-03-21 18:28:06 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2017-03-21 18:28:06 +0000
commitb7fc45a78a9ca5831cc6d51c2795e91ad7c5e0f2 (patch)
tree17967d429da08692737f9fe997c39425a261cdcd
parent1cefb0511e72b85a59a822040fe19da09ee3a5bb (diff)
downloadgcc-b7fc45a78a9ca5831cc6d51c2795e91ad7c5e0f2.zip
gcc-b7fc45a78a9ca5831cc6d51c2795e91ad7c5e0f2.tar.gz
gcc-b7fc45a78a9ca5831cc6d51c2795e91ad7c5e0f2.tar.bz2
[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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/dwarf2out.c5
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4706704..7070fab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2017-03-21 Alexandre Oliva <aoliva@redhat.com>
+
+ 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 <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/79908
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 0bbb90e..6ce8fbc 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;