From patchwork Fri Apr 17 15:15:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 6301 Received: (qmail 15060 invoked by alias); 17 Apr 2015 15:15:56 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 15039 invoked by uid 89); 17 Apr 2015 15:15:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Apr 2015 15:15:55 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5CD9928; Fri, 17 Apr 2015 08:15:38 -0700 (PDT) Received: from e105689-lin.cambridge.arm.com (e105689-lin.cambridge.arm.com [10.2.207.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F1B703F3E7; Fri, 17 Apr 2015 08:15:52 -0700 (PDT) Message-ID: <553123A7.1050608@foss.arm.com> Date: Fri, 17 Apr 2015 16:15:51 +0100 From: Richard Earnshaw User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: binutils@sourceware.org, gdb-patches@sourceware.org Subject: [committed] ob: merge include/partition.h from gcc X-IsSubscribed: yes 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. 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 + + Merge from gcc: + 2015-03-19 Richard Biener + + * partition.h (struct partition_elem): Re-order elements to + avoid padding. + 2015-04-14 H.J. Lu * 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;