From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57518 invoked by alias); 6 May 2019 08:52:37 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 56611 invoked by uid 89); 6 May 2019 08:52:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=61, sk:thomas, 6.1, 62 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 May 2019 08:52:35 +0000 Received: from svr-orw-mbx-02.mgc.mentorg.com ([147.34.90.202]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1hNZMP-0002cU-HK from Thomas_Schwinge@mentor.com ; Mon, 06 May 2019 01:52:33 -0700 Received: from SVR-ORW-MBX-07.mgc.mentorg.com (147.34.90.207) by svr-orw-mbx-02.mgc.mentorg.com (147.34.90.202) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 6 May 2019 01:52:31 -0700 Received: from tftp-cs (147.34.91.1) by SVR-ORW-MBX-07.mgc.mentorg.com (147.34.90.207) with Microsoft SMTP Server id 15.0.1320.4 via Frontend Transport; Mon, 6 May 2019 01:52:31 -0700 Received: by tftp-cs (Postfix, from userid 49978) id A74EFC2409; Mon, 6 May 2019 01:52:30 -0700 (PDT) From: Thomas Schwinge To: CC: Jakub Jelinek , Tom de Vries Subject: [committed] Clean up libgomp GCC 5 legacy support (was: Remove unused openacc call) In-Reply-To: <20160420102727.GC2850@laptop.zalov.cz> References: <56411718.6080503@acm.org> <87k2js3bwx.fsf@kepler.schwinge.homeip.net> <20160420102727.GC2850@laptop.zalov.cz> <1e40ad5b-dfc2-fc93-f4df-424fc5e468aa@codesourcery.com> User-Agent: Notmuch/0.9-125-g4686d11 (http://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Mon, 06 May 2019 08:52:00 -0000 Message-ID: <87bm0gezi4.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-SW-Source: 2019-05/txt/msg00183.txt.bz2 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 695 Hi! On Wed, 20 Apr 2016 12:27:27 +0200, Jakub Jelinek wrote: > On Wed, Apr 20, 2016 at 10:46:38AM +0200, Thomas Schwinge wrote: > > Clean up libgomp GCC 5 legacy support > >=20=20=20=20=20 > > libgomp/ > > * config/nvptx/oacc-parallel.c: Empty file. | * oacc-parallel.c: Add comments to legacy entry points (GCC 5). >=20 > Ok for trunk and 6.2, we don't need this for 6.1. I don't know anymore why I didn't commit this back then. Cesar has since committed to trunk in r263236 the patch that truncates 'libgomp/config/nvptx/oacc-parallel.c', and I've now committed the documentation update to trunk in r270901, see attached. Gr=C3=BC=C3=9Fe Thomas --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Clean-up-libgomp-GCC-5-legacy-support.trunk.patch Content-Transfer-Encoding: quoted-printable Content-length: 1702 =46rom 75a3472e37d26152afb7b08a6fda2691c4b0ee74 Mon Sep 17 00:00:00 2001 From: tschwinge Date: Mon, 6 May 2019 08:49:55 +0000 Subject: [PATCH] Clean up libgomp GCC 5 legacy support libgomp/ * oacc-parallel.c: Add comments to legacy entry points (GCC 5). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270901 138bc75d-0d04-0410-9= 61f-82ee72b054a4 --- libgomp/ChangeLog | 4 ++++ libgomp/oacc-parallel.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 30bb2d4beba..64e0a8ad8df 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2019-05-06 Thomas Schwinge + + * oacc-parallel.c: Add comments to legacy entry points (GCC 5). + 2019-03-27 Kevin Buettner =20 * team.c (gomp_team_start): Initialize pool->threads[0]. diff --git a/libgomp/oacc-parallel.c b/libgomp/oacc-parallel.c index b77c5e8b9c5..f5fb63c5b5a 100644 --- a/libgomp/oacc-parallel.c +++ b/libgomp/oacc-parallel.c @@ -275,7 +275,7 @@ GOACC_parallel_keyed (int flags_m, void (*fn) (void *), acc_dev->openacc.async_set_async_func (acc_async_sync); } =20 -/* Legacy entry point, only provide host execution. */ +/* Legacy entry point (GCC 5). Only provide host fallback execution. */ =20 void GOACC_parallel (int flags_m, void (*fn) (void *), @@ -649,12 +649,16 @@ GOACC_wait (int async, int num_waits, ...) acc_wait_all_async (async); } =20 +/* Legacy entry point (GCC 5). */ + int GOACC_get_num_threads (void) { return 1; } =20 +/* Legacy entry point (GCC 5). */ + int GOACC_get_thread_num (void) { --=20 2.17.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" Content-length: 658 -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEU9WEfWKGQazCmycCAKI7+41Q4XkFAlzP9cMACgkQAKI7+41Q 4XmPxgv/SvTL/M/h5NepJRhQtTwhNaOnAx2AP2Jl5bEZ/fiIwCuksBiXvnjQ++Ys GX0A+x2ptehoev/I6ahj/kQyRzgZD24bTqWQMHgPXKhCP1jO0CP+qFctrl8qisL/ Dvkv7ZI0P0AGdxuySzUnBmC2aZSPpTrxkTzOrXzC3TZIRhbAcWRmdyzQeF23Et5N g5fa2bzCljN/A5iiy8XkrP96iaJxqSotwO2ELx0vzOq2hp5LhnL0HTMI+UjFPK/4 hqOb+hjSCzQ/qJJmN/TUm8E9hFsn2bqAY+48lWW/HomPVfdFWlnz6fUpKIxHQ+Ua oSAkL6gCQ99j/Xk4n/WTbioaCOzlIaESkFHLiJ5laj7KcLtzTu8sb8qTInHEqs8M +3Wt6cfLh4VbVPZUXRKExMdG96RXqTG7jTPTK9dRdp/7Kz1lNIIchSYJTxKIrHon R2Ef0Lr/p+ber/qJLrURPMCqIhlgcM6KBpSILnJ6eZy8QBMgNm/2g+j0NjSB3CjQ bB7x4DMm =DxJp -----END PGP SIGNATURE----- --==-=-=--