From patchwork Fri Sep 21 19:11:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 185886 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 3BA482C0084 for ; Sat, 22 Sep 2012 05:11:49 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1348859510; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Date:From:To:Cc:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=0HsQJo6EbdDoB4uo6gnv y0xKAEU=; b=sfOUalooV44z0mpamhjnfbnoOJyyG+CG8YMXFMOis2IV2KQcV0cB x2U3KC/32kQ5Heoa07+YuivRT1IQ2kUkFYOupJzgAyabd/UqxKoUatgfNbNKUcq3 MV4HD8XOUPDFlae0/DXpRHyU994OSvmIPTKXxhmJO6J3h4Vjj5c8qAg= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-ExtLoop1:Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=uQL4hRVB207Y9QknudcQFAaQ74G2zoPawkRgrEvOnqjQrQKgg0rXz+i03sWyfW TUSUM/d2k/gwhXuE2QIvO09we8XX/iBCD0XiWHTCcVhZ2TEq9YQwoFXOo2VJrsgK dTucGfqyOcgjvwbPpe29UA0aFknz5E+xpBAUfEWftTQ00=; Received: (qmail 7584 invoked by alias); 21 Sep 2012 19:11:45 -0000 Received: (qmail 7571 invoked by uid 22791); 21 Sep 2012 19:11:43 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL, BAYES_00, FSL_FREEMAIL_1, KHOP_RCVD_UNTRUST, NO_DNS_FOR_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga14.intel.com (HELO mga14.intel.com) (143.182.124.37) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Sep 2012 19:11:30 +0000 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 21 Sep 2012 12:11:29 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by azsmga001.ch.intel.com with ESMTP; 21 Sep 2012 12:11:29 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id EC7B883813; Fri, 21 Sep 2012 12:11:28 -0700 (PDT) Date: Fri, 21 Sep 2012 12:11:28 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: PATCH: PR target/48904: x86_64-knetbsd-gnu fails to build Message-ID: <20120921191128.GA18459@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Hi, This patch adds i386/knetbsd-gnu64.h for x86_64-knetbsd-gnu. OK to install? Thanks. H.J. --- 2012-09-21 H.J. Lu PR target/48904 * config.gcc (tm_file): Add i386/knetbsd-gnu64.h for x86_64-*-knetbsd*-gnu. * config/i386/knetbsd-gnu64.h: New file. diff --git a/gcc/config.gcc b/gcc/config.gcc index d6c8153..00db1b4 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1275,7 +1275,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h" ;; x86_64-*-knetbsd*-gnu) - tm_file="${tm_file} knetbsd-gnu.h" + tm_file="${tm_file} knetbsd-gnu.h i386/knetbsd-gnu64.h" ;; esac tmake_file="${tmake_file} i386/t-linux64" diff --git a/gcc/config/i386/knetbsd-gnu64.h b/gcc/config/i386/knetbsd-gnu64.h new file mode 100644 index 0000000..d621bbe --- /dev/null +++ b/gcc/config/i386/knetbsd-gnu64.h @@ -0,0 +1,27 @@ +/* Definitions for AMD x86-64 running kNetBSD-based GNU systems with ELF format + Copyright (C) 2012 + Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +#define GNU_USER_LINK_EMULATION32 "elf_i386" +#define GNU_USER_LINK_EMULATION64 "elf_x86_64" +#define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64" + +#define GNU_USER_DYNAMIC_LINKER32 "/lib/ld.so.1" +#define GNU_USER_DYNAMIC_LINKER64 "/lib/ld-knetbsd-x86-64.so.1" +#define GNU_USER_DYNAMIC_LINKERX32 "/lib/ld-knetbsd-x32.so.1"