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
