This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Forwarding -foffload=[...] from the driver (compile-time) to libgomp (run-time)
- From: Nathan Sidwell <nathan at acm dot org>
- To: Joseph Myers <joseph at codesourcery dot com>, Thomas Schwinge <thomas at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 21 Aug 2015 12:06:01 -0400
- Subject: Re: Forwarding -foffload=[...] from the driver (compile-time) to libgomp (run-time)
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1410151612470 dot 20733 at zhemvz dot fhfr dot qr> <20141020111935 dot GA9362 at msticlxl57 dot ims dot intel dot com> <20141024141601 dot GA62562 at msticlxl57 dot ims dot intel dot com> <20141024142028 dot GD10376 at tucnak dot redhat dot com> <20141028193047 dot GA17865 at msticlxl57 dot ims dot intel dot com> <20141103092447 dot GO5026 at tucnak dot redhat dot com> <20141105124655 dot GA42356 at msticlxl57 dot ims dot intel dot com> <87egjopgh0 dot fsf at kepler dot schwinge dot homeip dot net> <20150731142007 dot GA64740 at msticlxl57 dot ims dot intel dot com> <CAFiYyc3NJjund2BbEQ0HxtGiaM-Z9bmX4UPaQtYguYjHQs0-Gg at mail dot gmail dot com> <20150805150904 dot GA3211 at msticlxl57 dot ims dot intel dot com> <87bneatd5q dot fsf at schwinge dot name> <alpine dot DEB dot 2 dot 10 dot 1508141655200 dot 16651 at digraph dot polyomino dot org dot uk> <87lhddsfs4 dot fsf at schwinge dot name> <alpine dot DEB dot 2 dot 10 dot 1508142255410 dot 28860 at digraph dot polyomino dot org dot uk> <87oai4r2ok dot fsf at schwinge dot name> <alpine dot DEB dot 2 dot 10 dot 1508202251220 dot 2630 at digraph dot polyomino dot org dot uk>
On 08/20/15 18:52, Joseph Myers wrote:
On Tue, 18 Aug 2015, Thomas Schwinge wrote:
This is what I've committed to gomp-4_0-branch, with the driver changes
substantially cleaned up and smaller changes to the other bits of the
patch.
gcc:
2015-08-20 Thomas Schwinge <thomas@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* doc/invoke.texi (-ffixed-@var{reg}): Document conflict with
Fortran options.
* gcc.c (offload_targets): Update comment.
(add_omp_infile_spec_func, spec_lang_mask_accept): New.
(driver_self_specs) [ENABLE_OFFLOADING]: Add spec to use
%:add-omp-infile().
(static_spec_functions): Add add-omp-infile.
(struct switchstr): Add lang_mask field. Expand comment.
(struct infile): Add lang_mask field.
(add_infile, save_switch, do_spec): Add lang_mask argument.
(driver_unknown_option_callback, driver_wrong_lang_callback)
(driver_handle_option, process_command, do_self_spec)
(driver::do_spec_on_infiles): All callers changed.
(give_switch): Check languages of switch against
spec_lang_mask_accept.
(driver::maybe_putenv_OFFLOAD_TARGETS): Do not use intermediate
targets variable.
* gcc.h (do_spec): Update prototype.
this appears to cause an ICE in add_omp_infile_spec_func at;
gcc_assert (offload_targets != NULL);
when you use something like -foffload='-save-temps -v -fdump-rtl-all
-fdump-tree-all -fno-verbose-asm'
Is that use ill-formed?
nathan