This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4] Offload option handling
- From: Ilya Verbin <iverbin at gmail dot com>
- To: Bernd Schmidt <bernds at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Wed, 23 Jul 2014 19:09:29 +0400
- Subject: Re: [gomp4] Offload option handling
- Authentication-results: sourceware.org; auth=none
- References: <5391D946 dot 1070709 at codesourcery dot com> <53CFAFC4 dot 7020505 at codesourcery dot com>
On 23 Jul 14:51, Bernd Schmidt wrote:
> Ping.
> https://gcc.gnu.org/ml/gcc-patches/2014-06/msg00616.html
>
> On 06/06/2014 05:07 PM, Bernd Schmidt wrote:
> >There's a problem when offloading from a compiler for one target machine
> >to another: the machine specific options don't necessarily match. This
> >patch tries to address this.
> >
> >The idea is that since we have two options sections anyway, with
> >different section name prefixes, we can arrange to pass only
> >target-independent options in the omp_ version of the options section.
> >However, some target-specific options (specifically the ones specifying
> >the ABI) need to be preserved somehow, so there's a new target hook for
> >translating them to common a -foffload-* syntax.
> >
> >How does this look? Comments on the approach, and ok for the
> >gomp-4_0-branch?
How about passing target-specific options from the command-line? Will it be
possible with this approach?
We had a patch, that parses options from -foffload-target=<target>=<options> and
stores them to the environment variable. Now it is obsolete, but I like the
idea of having such a user-adjustable options for the accel compilers.
https://gcc.gnu.org/ml/gcc-patches/2013-12/msg01242.html
-- Ilya