From patchwork Fri Jul 23 14:39:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 59807 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id C25C0B70EB for ; Sat, 24 Jul 2010 00:39:15 +1000 (EST) Received: (qmail 813 invoked by alias); 23 Jul 2010 14:39:13 -0000 Received: (qmail 793 invoked by uid 22791); 23 Jul 2010 14:39:12 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-vw0-f47.google.com (HELO mail-vw0-f47.google.com) (209.85.212.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Jul 2010 14:39:06 +0000 Received: by vws13 with SMTP id 13so294289vws.20 for ; Fri, 23 Jul 2010 07:39:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.62.201 with SMTP id y9mr1775126vch.220.1279895943641; Fri, 23 Jul 2010 07:39:03 -0700 (PDT) Received: by 10.220.194.134 with HTTP; Fri, 23 Jul 2010 07:39:03 -0700 (PDT) In-Reply-To: References: <20100722082200.GA16834@basil.fritz.box> Date: Fri, 23 Jul 2010 07:39:03 -0700 Message-ID: Subject: Re: PING for LTO ld -r patches From: "H.J. Lu" To: Andi Kleen Cc: gcc-patches@gcc.gnu.org X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On Fri, Jul 23, 2010 at 6:25 AM, H.J. Lu wrote: > On Thu, Jul 22, 2010 at 1:22 AM, Andi Kleen wrote: >> Review ping for: >> >> http://permalink.gmane.org/gmane.comp.gcc.patches/212187 >> http://permalink.gmane.org/gmane.comp.gcc.patches/212185 >> http://permalink.gmane.org/gmane.comp.gcc.patches/212186 >> http://permalink.gmane.org/gmane.comp.gcc.patches/212226 >> >> The first three patches should be quite straight forward? Ok >> to commit those after rebootstrap/retest? >> >> The fourth is a bit more complicated, but should get reviewed >> too please. > > This caused: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45042 > I checked in this as an obvious fix. Index: ChangeLog =================================================================== --- ChangeLog (revision 162464) +++ ChangeLog (working copy) @@ -1,5 +1,10 @@ -2010-07-10 Andi Kleen +2010-07-23 H.J. Lu + PR bootstrap/45042 + * lto-plugin.c (translate): Cast to unsigned long. + +2010-07-23 Andi Kleen + PR lto/44992 * lto-plugin.c (sym_aux): Add. (plugin_symtab): Remove slots. Add aux and id. Index: lto-plugin.c =================================================================== --- lto-plugin.c (revision 162464) +++ lto-plugin.c (working copy) @@ -212,7 +212,8 @@ data = parse_table_entry (data, &syms[n], &aux[n]); } - fprintf (stderr, "n = %d len = %d end-data=%lu\n", n, len, end-data); + fprintf (stderr, "n = %d len = %d end-data=%lu\n", n, len, + (unsigned long) (end - data)); assert(n < len); out->nsyms = n;