[Patch] Add 'default' to -foffload=; document that flag [PR67300]

Jakub Jelinek jakub@redhat.com
Tue Jun 29 13:51:30 GMT 2021


On Tue, Jun 29, 2021 at 03:47:03PM +0200, Tobias Burnus wrote:
> gcc/ChangeLog:
> 
>         * common.opt (-foffload=): Update description.
> 	(-foffload-options=): New.
>         * doc/invoke.texi (C Language Options): Document
> 	-foffload and -foffload-options.
>         * gcc.c (check_offload_target_name): New, split off from
> 	handle_foffload_option.
>         (check_foffload_target_names): New.
>         (handle_foffload_option): Handle -foffload=default.
>         (driver_handle_option): Update for -foffload-options.
>         * lto-opts.c (lto_write_options): Use -foffload-options
> 	instead of -foffload.
>         * lto-wrapper.c (merge_and_complain, append_offload_options):
> 	Likewise.
>         * opts.c (common_handle_option): Likewise.
> 
> libgomp/ChangeLog:
> 
>         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
> 	-foffload=nvptx-none= by -foffload-options=nvptx-none= to
> 	avoid disabling other offload targets.
>         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
>         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
>         * testsuite/libgomp.c/target-44.c: Likewise.

Ok, thanks.

	Jakub



More information about the Gcc-patches mailing list