From patchwork Wed Apr 29 08:01:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Reutner-Fischer X-Patchwork-Id: 465924 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6EF2414032B for ; Wed, 29 Apr 2015 18:02:21 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=A0K3Xjfk; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=xf9T4eB8IKCj aHCaNVmfrHEvBlyV13sBZgT6pg3Ay9YP7npts0wAwSjgBHGuHS7pHH3F9fOGdVyE NhOH8J7LMfmj+We6X8m0PKN2kh/lsJID6ZIjwRKvofguNdnKRmkMnBB239uPs+km VzFrIL/Hp9aj6sdxKG+FHH/GgO8qFZU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=2l1Sa9krJpfmmSHVI0 h3AWogRqA=; b=A0K3XjfkAB6uzufe7ZGSlBCbGWZWnjj/rDLlfcdWxDiqSBlh+c QbDth/b+217HuQbLbSRCJSheadOjS9hkv/wwbsR9RB/v9vaai4LAoUO4187fltj2 ilJjtlZOzfXHdd9RtcqNDyXG3MI86YVOBKdOXiutHsui2B0vgKo5yF0XA= Received: (qmail 67736 invoked by alias); 29 Apr 2015 08:02:00 -0000 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 Received: (qmail 67694 invoked by uid 89); 29 Apr 2015 08:01:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f42.google.com Received: from mail-wg0-f42.google.com (HELO mail-wg0-f42.google.com) (74.125.82.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 29 Apr 2015 08:01:58 +0000 Received: by wgen6 with SMTP id n6so19088266wge.3 for ; Wed, 29 Apr 2015 01:01:55 -0700 (PDT) X-Received: by 10.180.95.10 with SMTP id dg10mr3429619wib.41.1430294515198; Wed, 29 Apr 2015 01:01:55 -0700 (PDT) Received: from s42.loc (91-119-126-175.dynamic.xdsl-line.inode.at. [91.119.126.175]) by mx.google.com with ESMTPSA id l6sm6267368wjz.4.2015.04.29.01.01.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Apr 2015 01:01:53 -0700 (PDT) Received: from cow by s42.loc with local (Exim 4.80) (envelope-from ) id 1YnMwK-0004ml-JK; Wed, 29 Apr 2015 10:01:52 +0200 From: Bernhard Reutner-Fischer To: gcc-patches@gcc.gnu.org Cc: Bernhard Reutner-Fischer , "H . J . Lu" Subject: [PATCH] PR target/48904 x86_64-knetbsd-gnu missing defs Date: Wed, 29 Apr 2015 10:01:49 +0200 Message-Id: <1430294510-18361-1-git-send-email-rep.dot.nop@gmail.com> X-IsSubscribed: yes 2012-09-21 H.J. Lu PR target/48904 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h. * config/i386/knetbsd-gnu64.h: New file Signed-off-by: Bernhard Reutner-Fischer --- This fixes config-list.mk all-gcc for x86_64-knetbsd-gnu. Ok for trunk? gcc/config.gcc | 2 +- gcc/config/i386/knetbsd-gnu64.h | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 gcc/config/i386/knetbsd-gnu64.h diff --git a/gcc/config.gcc b/gcc/config.gcc index a1df043..77ef473 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1517,7 +1517,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"