From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B1A7F382C428; Tue, 29 Jun 2021 14:00:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1A7F382C428 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/67300] -foffload* undocumented Date: Tue, 29 Jun 2021 14:00:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2021 14:00:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67300 --- Comment #4 from CVS Commits --- The master branch has been updated by Tobias Burnus : https://gcc.gnu.org/g:33c4e466243f2d0459d9a4d0cadc1b38a3741f3e commit r12-1871-g33c4e466243f2d0459d9a4d0cadc1b38a3741f3e Author: Tobias Burnus Date: Tue Jun 29 15:58:21 2021 +0200 Add 'default' to -foffload=3D; document that flag [PR67300] As -foffload=3D{options,targets,targets=3Doptions} is very convoluted, it has been split into -foffload=3Dtargets (supporting the old syntax for backward compatibilty) and -foffload-options=3D{options,target=3Dop= tions}. Only the new syntax is documented. Additionally, -foffload=3Ddefault is supported, which can reset the devices after -foffload=3Ddisable / -foffload=3Dtargets to the default, if needed. gcc/ChangeLog: PR other/67300 * common.opt (-foffload=3D): Update description. (-foffload-options=3D): 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=3Ddefault. (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: PR other/67300 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace -foffload=3Dnvptx-none=3D by -foffload-options=3Dnvptx-none=3D = 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.=