From patchwork Wed Jan 20 17:27:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Monakov X-Patchwork-Id: 570811 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 9DE711402D9 for ; Thu, 21 Jan 2016 04:28:24 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=ecOibLmU; 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:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=MnHrzaYUF9oL+Opd7+4vYGDmQFQEzVd00ghcBQ3czMzHUmL3nAeVK g7GeiDNP2oYmGdv35VQmByXOlktaaeq+IMx+wFX5GDv4dIIcOVKaq8Ndj2HWlt95 uQxvgT5Zj8YqIpY0MC9GKvX6s3EmKhtDK17kW6pT/7PGzllulZeU7I= 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:subject:date:message-id:in-reply-to:references; s=default; bh=P8u3xd6N90r7E2bAea7SKUC+u3Y=; b=ecOibLmUQDAhV3Oprk974rB2I0TL Ygpa6cj1xjtsjAS3qV7KVutDBdkjecFu/PJLBqVjiD2MVvd1tTg8DVAJF4rW5j3R tcguS4t0Cj7XMX7WjomRnGKEPqmkKAVeNQ2FSiJQwIyVSZcqkpK8o+exEZUZ9fZj C1bzn1r94rnlxGM= Received: (qmail 1701 invoked by alias); 20 Jan 2016 17:27:19 -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 1616 invoked by uid 89); 20 Jan 2016 17:27:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Processing, Temporary X-HELO: smtp.ispras.ru Received: from smtp.ispras.ru (HELO smtp.ispras.ru) (83.149.199.79) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Jan 2016 17:27:15 +0000 Received: from condor.intra.ispras.ru (unknown [83.149.199.91]) by smtp.ispras.ru (Postfix) with ESMTP id 22BDF20414 for ; Wed, 20 Jan 2016 20:27:08 +0300 (MSK) Received: by condor.intra.ispras.ru (Postfix, from userid 23246) id 1FCED1222668; Wed, 20 Jan 2016 20:27:08 +0300 (MSK) From: Alexander Monakov To: gcc-patches@gcc.gnu.org Subject: [gomp-nvptx 09/13] libgomp: use generic fortran.c on nvptx Date: Wed, 20 Jan 2016 20:27:03 +0300 Message-Id: <1453310827-23183-10-git-send-email-amonakov@ispras.ru> In-Reply-To: <1453310827-23183-1-git-send-email-amonakov@ispras.ru> References: <1453310827-23183-1-git-send-email-amonakov@ispras.ru> X-IsSubscribed: yes This patch removes the nvptx fortran.c stub that provides only _gfortran_abort. It is possible to link libgfortran on NVPTX with -foffload=-lgfortran. * config/nvptx/fortran.c: Delete. --- libgomp/ChangeLog.gomp-nvptx | 4 ++++ libgomp/config/nvptx/fortran.c | 40 ---------------------------------------- 2 files changed, 4 insertions(+), 40 deletions(-) delete mode 100644 libgomp/config/nvptx/fortran.c diff --git a/libgomp/config/nvptx/fortran.c b/libgomp/config/nvptx/fortran.c deleted file mode 100644 index 58ca790..0000000 --- a/libgomp/config/nvptx/fortran.c +++ /dev/null @@ -1,40 +0,0 @@ -/* OpenACC Runtime Fortran wrapper routines - - Copyright (C) 2014-2015 Free Software Foundation, Inc. - - Contributed by Mentor Embedded. - - This file is part of the GNU Offloading and Multi Processing Library - (libgomp). - - Libgomp 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. - - Libgomp 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. - - Under Section 7 of GPL version 3, you are granted additional - permissions described in the GCC Runtime Library Exception, version - 3.1, as published by the Free Software Foundation. - - You should have received a copy of the GNU General Public License and - a copy of the GCC Runtime Library Exception along with this program; - see the files COPYING3 and COPYING.RUNTIME respectively. If not, see - . */ - -/* Temporary hack; this will be provided by libgfortran. */ - -extern void _gfortran_abort (void); - -__asm__ ("// BEGIN GLOBAL FUNCTION DECL: _gfortran_abort\n" - ".visible .func _gfortran_abort;\n" - "// BEGIN GLOBAL FUNCTION DEF: _gfortran_abort\n" - ".visible .func _gfortran_abort\n" - "{\n" - "trap;\n" - "ret;\n" - "}\n");