From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13408 invoked by alias); 11 Feb 2015 14:20:49 -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 13388 invoked by uid 89); 11 Feb 2015 14:20:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 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; Wed, 11 Feb 2015 14:20:48 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YLY9l-00040I-5n from Thomas_Schwinge@mentor.com for gcc-patches@gcc.gnu.org; Wed, 11 Feb 2015 06:20:45 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Wed, 11 Feb 2015 14:20:43 +0000 From: Thomas Schwinge To: GCC Patches CC: Bernd Schmidt Subject: Re: nvptx offloading patches [4/n] In-Reply-To: <87zj92vnsa.fsf@kepler.schwinge.homeip.net> References: <5454CDF1.3070307@codesourcery.com> <87zj92vnsa.fsf@kepler.schwinge.homeip.net> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Wed, 11 Feb 2015 14:20:00 -0000 Message-ID: <87mw4kh6mf.fsf@schwinge.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2015-02/txt/msg00708.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 2434 Hi! On Wed, 28 Jan 2015 18:05:25 +0100, I wrote: > On Sat, 1 Nov 2014 13:11:29 +0100, Bernd Schmidt wrote: > > I'm sending this for reference more than anything else - this is the=20 > > patch that adds the target support for offloading to the nvptx port. It= =20 > > depends on the other offloading patches Ilya is currently submitting. >=20 > Committed to trunk in r220209: >=20 > commit 9c08fbb35aa95420268c2762151f22a6a9b90e85 > Author: tschwinge > Date: Wed Jan 28 17:03:44 2015 +0000 >=20 > nvptx mkoffload. Committed to trunk in r220621: commit bfeb7c1c69130bb13265c49126e6159dbd9b8a5d Author: tschwinge Date: Wed Feb 11 14:15:47 2015 +0000 nvptx mkoffload: Initialize GCC diagnostic machinery before using it. =20=20=20=20 gcc/ * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of "diagnostic-core.h". (main): Initialize progname, and call diagnostic_initialize. =20=20=20=20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220621 138bc75d-0d04-04= 10-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/nvptx/mkoffload.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git gcc/ChangeLog gcc/ChangeLog index bc4a050..482b128 100644 --- gcc/ChangeLog +++ gcc/ChangeLog @@ -1,5 +1,9 @@ 2015-02-11 Thomas Schwinge =20 + * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of + "diagnostic-core.h". + (main): Initialize progname, and call diagnostic_initialize. + * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__ instead of __OPENMP_TARGET__. =20 diff --git gcc/config/nvptx/mkoffload.c gcc/config/nvptx/mkoffload.c index 2287316..739aee8 100644 --- gcc/config/nvptx/mkoffload.c +++ gcc/config/nvptx/mkoffload.c @@ -33,7 +33,7 @@ #include "intl.h" #include #include "obstack.h" -#include "diagnostic-core.h" +#include "diagnostic.h" #include "collect-utils.h" #include "gomp-constants.h" =20 @@ -828,6 +828,9 @@ main (int argc, char **argv) FILE *out =3D stdout; const char *outname =3D 0; =20 + progname =3D "mkoffload"; + diagnostic_initialize (global_dc, 0); + char *collect_gcc =3D getenv ("COLLECT_GCC"); if (collect_gcc =3D=3D NULL) fatal_error (input_location, "COLLECT_GCC must be set."); Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU22U4AAoJEPoxNhtoi6COqmAIAJbDVpD09dpNSxgRUTKj9OxG szecDxfqFfNnWvzSu0gulwmdB8+DZEmcF7KzhR2oAomNlhzvgfvLVtdXPXKTlUur 9EMkGP8NL/Se6YaaInDchPMgsCAeC+doAbUlBYD4LNtqDjJKzw3QRQLtXaXH4iUE Ej10oyCNyZgrc8hpuJYVeSKbT9Fph71cI1CAT0kfJrBcmXzvlmayQNxlW3yMGWvL QqAzwKf/K/vI+b6Pz1Fdh303AgZDEViiujwZjskp2YZTS2vnY12orYtr3ThOcbVe /y+5rW82hfQesrwVqcl+3EcMvSt/n+kQ140w8cWBzONVbjNNZd3HgbikDEtyEbQ= =gY3G -----END PGP SIGNATURE----- --=-=-=--