From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66995 invoked by alias); 14 Aug 2015 16:56:34 -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 66908 invoked by uid 89); 14 Aug 2015 16:56:33 -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, 14 Aug 2015 16:56:32 +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 1ZQIHM-0003DV-4G from joseph_myers@mentor.com ; Fri, 14 Aug 2015 09:56:28 -0700 Received: from digraph.polyomino.org.uk (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; Fri, 14 Aug 2015 17:56:26 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1ZQIHJ-0004Is-5P; Fri, 14 Aug 2015 16:56:25 +0000 Date: Fri, 14 Aug 2015 17:08:00 -0000 From: Joseph Myers To: Thomas Schwinge CC: Jakub Jelinek , Ilya Verbin , Richard Biener , Richard Biener , Jan Hubicka , GCC Patches , Kirill Yukhin Subject: Re: Forwarding -foffload=[...] from the driver (compile-time) to libgomp (run-time) (was: [PATCH 2/n] OpenMP 4.0 offloading infrastructure: LTO streaming) In-Reply-To: <87bneatd5q.fsf@schwinge.name> Message-ID: References: <20141020111935.GA9362@msticlxl57.ims.intel.com> <20141024141601.GA62562@msticlxl57.ims.intel.com> <20141024142028.GD10376@tucnak.redhat.com> <20141028193047.GA17865@msticlxl57.ims.intel.com> <20141103092447.GO5026@tucnak.redhat.com> <20141105124655.GA42356@msticlxl57.ims.intel.com> <87egjopgh0.fsf@kepler.schwinge.homeip.net> <20150731142007.GA64740@msticlxl57.ims.intel.com> <20150805150904.GA3211@msticlxl57.ims.intel.com> <87bneatd5q.fsf@schwinge.name> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-1571334017-1439571385=:16651" X-SW-Source: 2015-08/txt/msg00816.txt.bz2 ---1152306461-1571334017-1439571385=:16651 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Content-length: 789 On Fri, 14 Aug 2015, Thomas Schwinge wrote: > This function »generate[s] a C source file containing a constructor call > to GOMP_set_offload_targets [...], and adds that as an infile«. This > "basically" works ;-) -- but really only for C source code, and for C++ > and Fortran it fails if there are command-line options used that conflict > with the C compilation of add-omp-infile, such as (from a libgomp > testsuite run): for C++: -std=c++11, -fno-extern-tls-init, or for > Fortran: -fcray-pointer, -fintrinsic-modules-path. Any suggestion about > how to overcome that? I suppose you need to use the option-handling information about which options are for which languages to filter out any options that aren't valid for C or Common. -- Joseph S. Myers joseph@codesourcery.com ---1152306461-1571334017-1439571385=:16651--