[PR63238] include alignment debug information in DIE checksum
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 21 Mar 2017 18:28:06 +0000 (18:28 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 21 Mar 2017 18:28:06 +0000 (18:28 +0000)
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

gcc/ChangeLog
gcc/dwarf2out.c

index 4706704ade58842f6e44910a291201dcc9f3b30c..7070fabd632192a2e59a4c4d53e6caa5006c2eca 100644 (file)
@@ -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
index 0bbb90ed3aa19a61548532f315cb1ec3e1f52245..6ce8fbc95f1db95084dbe3305beec3bc81b06cd2 100644 (file)
@@ -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;