diff mbox

[libiberty] Avoid padding in partition_elem

Message ID alpine.LSU.2.11.1503191207390.15299@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener March 19, 2015, 11:09 a.m. UTC
The following patch re-orders elements to avoid 8 bytes of padding.

Bootstrapped on x86_64-unknown-linux-gnu, ok?

Thanks,
Richard.

2015-03-19  Richard Biener  <rguenther@suse.de>

	* partition.h (struct partition_elem): Re-order elements to
	avoid padding.

Comments

Jakub Jelinek March 19, 2015, 11:12 a.m. UTC | #1
On Thu, Mar 19, 2015 at 12:09:10PM +0100, Richard Biener wrote:
> 
> The following patch re-orders elements to avoid 8 bytes of padding.
> 
> Bootstrapped on x86_64-unknown-linux-gnu, ok?
> 
> Thanks,
> Richard.
> 
> 2015-03-19  Richard Biener  <rguenther@suse.de>
> 
> 	* partition.h (struct partition_elem): Re-order elements to
> 	avoid padding.

Ok, thanks.

	Jakub
diff mbox

Patch

Index: include/partition.h
===================================================================
--- include/partition.h	(revision 221490)
+++ include/partition.h	(working copy)
@@ -45,12 +45,12 @@  extern "C" {
 
 struct partition_elem
 {
-  /* The canonical element that represents the class containing this
-     element.  */
-  int class_element;
   /* The next element in this class.  Elements in each class form a
      circular list.  */
   struct partition_elem* next;
+  /* The canonical element that represents the class containing this
+     element.  */
+  int class_element;
   /* The number of elements in this class.  Valid only if this is the
      canonical element for its class.  */
   unsigned class_count;