* [committed] ob: merge include/partition.h from gcc
@ 2015-04-17 15:15 Richard Earnshaw
0 siblings, 0 replies; only message in thread
From: Richard Earnshaw @ 2015-04-17 15:15 UTC (permalink / raw)
To: binutils, gdb-patches
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
This patch just merges a change from the gcc copy of partition.h in
include. It gives better memory usage for the partition object on
64-bit machines.
Committed.
[-- Attachment #2: part.patch --]
[-- Type: text/plain, Size: 1409 bytes --]
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-17 15:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-17 15:15 [committed] ob: merge include/partition.h from gcc Richard Earnshaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).