From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126198 invoked by alias); 2 Oct 2015 21:28:38 -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 126182 invoked by uid 89); 2 Oct 2015 21:28:37 -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; Fri, 02 Oct 2015 21:28:36 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Zi7sV-0000u2-7K from Thomas_Schwinge@mentor.com ; Fri, 02 Oct 2015 14:28:31 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Fri, 2 Oct 2015 22:28:29 +0100 From: Thomas Schwinge To: Bernd Schmidt , CC: Kirill Yukhin , Andrey Turetskiy , Ilya Verbin , Jakub Jelinek , Jan Hubicka , Richard Biener , , James Norris Subject: Help the offload gcc driver find the right assembler (was: [PATCH 4/n] OpenMP 4.0 offloading infrastructure: lto-wrapper) In-Reply-To: <555232CD.7060100@codesourcery.com> References: <20141002151457.GA59899@msticlxl57.ims.intel.com> <87lhgtrcbv.fsf@kepler.schwinge.homeip.net> <555232CD.7060100@codesourcery.com> User-Agent: Notmuch/0.9-125-g4686d11 (http://notmuchmail.org) Emacs/24.5.1 (i586-pc-linux-gnu) Date: Fri, 02 Oct 2015 21:28:00 -0000 Message-ID: <87h9m9q7t4.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2015-10/txt/msg00280.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 2259 Hi! On Tue, 12 May 2015 19:05:17 +0200, Bernd Schmidt = wrote: > > @@ -4266,7 +4266,7 @@ process_command (unsigned int decoded_op > > } > > > > gcc_assert (!IS_ABSOLUTE_PATH (tooldir_base_prefix)); > > - tooldir_prefix2 =3D concat (tooldir_base_prefix, spec_host_machine, > > + tooldir_prefix2 =3D concat (tooldir_base_prefix, spec_machine, > > dir_separator_str, NULL); > > > > /* Look for tools relative to the location from which the driver is >=20 > This one, definitely. Indeed; now committed in r228429. (Jim, did this missing patch cause the thousands of FAILs you've seen? The problem was that nvptx offloading found the wrong assembler, and we all know what happens when you try to process PTX assembly with an x86/PowerPC assembler...) commit f2fd5997e0856128c0609cdc6aa4cf9867f94c41 Author: tschwinge Date: Fri Oct 2 21:24:50 2015 +0000 Help the offload gcc driver find the right assembler =20=20=20=20 gcc/ * gcc.c (process_command): Use spec_machine rather than spec_host_machine to build tooldir_prefix2. =20=20=20=20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228429 138bc75d-0d04-04= 10-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git gcc/ChangeLog gcc/ChangeLog index d1235bd..7fe0196 100644 --- gcc/ChangeLog +++ gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-02 Bernd Schmidt + + * gcc.c (process_command): Use spec_machine rather than + spec_host_machine to build tooldir_prefix2. + 2015-10-02 Thomas Schwinge Bernd Schmidt =20 diff --git gcc/gcc.c gcc/gcc.c index db90796..7f5a36e 100644 --- gcc/gcc.c +++ gcc/gcc.c @@ -4472,7 +4472,7 @@ process_command (unsigned int decoded_options_count, } =20 gcc_assert (!IS_ABSOLUTE_PATH (tooldir_base_prefix)); - tooldir_prefix2 =3D concat (tooldir_base_prefix, spec_host_machine, + tooldir_prefix2 =3D concat (tooldir_base_prefix, spec_machine, dir_separator_str, NULL); =20 /* Look for tools relative to the location from which the driver is Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature; name="signature.asc" Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWDvb3AAoJEK3/DN1sMFFtJIgIAIonQ8ZQKFGFWbQ3OiNexO7O Wl6NTO/rInyISdVInljYtKMQjDf9VByrdUZVfqNhFLyi6sGUr/7uvuIMCaOZ4xZY 4lvuNsdPyVSuuxF/ixjnm0TsnYzKzPOdHGkGWBni7YTPSckqFaxgmprBMyaktELD ih6EhDvjnd1Wec1/aGXPUGlOLlfUtUdwFh90455zDVN/7nUTSv0DSqfEd1mlksBU mFuoNAdBUlsn/xLIDqhi5onyEg18En6P2CtbyihlsyKejva2oSsZdkm8ZLB2rCaj NgrP31KVPvNpGHQiwpk9QsDPla/35zRvaaN+kDOhWM3kA4shNUIxAgBcLVjhb+s= =GVPo -----END PGP SIGNATURE----- --=-=-=--