This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Merge include/partition.h from GCC.
- From: Richard Earnshaw <rearnsha at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 17 Apr 2015 15:14:01 -0000
- Subject: [binutils-gdb] Merge include/partition.h from GCC.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a4ea36c6cb13d100aacab3a90762597cef471b35
commit a4ea36c6cb13d100aacab3a90762597cef471b35
Author: Richard Earnshaw <Richard.Earnshaw@arm.com>
Date: Fri Apr 17 16:10:43 2015 +0100
Merge include/partition.h from GCC.
2015-03-19 Richard Biener <rguenther@suse.de>
* partition.h (struct partition_elem): Re-order elements to
avoid padding.
Diff:
---
include/ChangeLog | 8 ++++++++
include/partition.h | 8 ++++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/include/ChangeLog b/include/ChangeLog
index 9afcc62..55bf46d 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,11 @@
+2015-04-17 Richard Earnshaw <rearnsha@arm.com>
+
+ Merge from gcc:
+ 2015-03-19 Richard Biener <rguenther@suse.de>
+
+ * partition.h (struct partition_elem): Re-order elements to
+ avoid padding.
+
2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (bfd_link_info): Add compress_debug.
diff --git a/include/partition.h b/include/partition.h
index 53d127e..c39873b 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -1,5 +1,5 @@
/* List implementation of a partition of consecutive integers.
- Copyright (C) 2000-2015 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by CodeSourcery, LLC.
This file is part of GCC.
@@ -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;