From patchwork Sat Oct 29 08:09:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 122529 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 EB0E5B6F85 for ; Sat, 29 Oct 2011 19:10:20 +1100 (EST) Received: (qmail 29940 invoked by alias); 29 Oct 2011 08:10:16 -0000 Received: (qmail 29915 invoked by uid 22791); 29 Oct 2011 08:10:13 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (213.235.205.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 29 Oct 2011 08:09:51 +0000 Received: by one.firstfloor.org (Postfix, from userid 503) id 405401A98026; Sat, 29 Oct 2011 10:09:48 +0200 (CEST) Date: Sat, 29 Oct 2011 10:09:48 +0200 From: Andi Kleen To: Hans-Peter Nilsson Cc: andi@firstfloor.org, gcc-patches@gcc.gnu.org, ak@linux.intel.com Subject: Re: Build broken due to "[PATCH] Add gcc-ar/nm/ranlib wrappers for slim LTO v2" Message-ID: <20111029080948.GA14103@one.firstfloor.org> References: <1319154948-22442-1-git-send-email-andi@firstfloor.org> <201110290526.p9T5Q9Sq001324@ignucius.se.axis.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <201110290526.p9T5Q9Sq001324@ignucius.se.axis.com> User-Agent: Mutt/1.4.2.2i 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 > This broke cross to cris-elf and I guess many other targets > with TOT binutils, as follows: > > mv -f Tlto-wrapper lto-wrapper Oops. Can you please confirm this patch fixes it? -Andi diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c index fc7e4a2..1e86d20 100644 --- a/gcc/gcc-ar.c +++ b/gcc/gcc-ar.c @@ -29,6 +29,7 @@ along with GCC; see the file COPYING3. If not see static const char standard_libexec_prefix[] = STANDARD_LIBEXEC_PREFIX; static const char standard_bin_prefix[] = STANDARD_BINDIR_PREFIX; +static const char *const target_machine = TARGET_MACHINE; static const char dir_separator[] = { DIR_SEPARATOR, 0 };