public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] gcc.c: Add -foffload= to display_help
@ 2021-07-26  9:13 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-07-26  9:13 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:67371f83716222d2812f3dfb1386a1fb23e7bd2e

commit 67371f83716222d2812f3dfb1386a1fb23e7bd2e
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Wed Jun 30 14:49:48 2021 +0200

    gcc.c: Add -foffload= to display_help
    
    gcc/ChangeLog:
    
            * common.opt (foffload): Remove help as Driver only.
            * gcc.c (display_help): Add -foffload.
    
    (cherry picked from commit 63fe82d80dee997b25ca60fa7d1ed07e97930976)

Diff:
---
 gcc/ChangeLog.omp | 6 ++++++
 gcc/common.opt    | 3 ---
 gcc/gcc.c         | 1 +
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index 41dc94dfff7..9ecb640cbd2 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -3,6 +3,12 @@
 	Backported from master:
 	2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
 
+	* common.opt (foffload): Remove help as Driver only.
+	* gcc.c (display_help): Add -foffload.
+
+	Backported from master:
+	2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
+
 	* gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
 	(check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
 	a candidate list; better inform no offload target is configured
diff --git a/gcc/common.opt b/gcc/common.opt
index 43583eee89b..771398bc03d 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2082,11 +2082,8 @@ fnon-call-exceptions
 Common Var(flag_non_call_exceptions) Optimization
 Support synchronous non-call exceptions.
 
-; -foffload=<targets> is documented
-; -foffload=<targets>=<options> is supported for backward compatibility
 foffload=
 Driver Joined MissingArgError(targets missing after %qs)
--foffload=<targets>	Specify offloading targets.
 
 foffload-options=
 Common Driver Joined MissingArgError(options or targets=options missing after %qs)
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 9d98f4fb012..b1d652449eb 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3746,6 +3746,7 @@ display_help (void)
   fputs (_("  -dumpspecs               Display all of the built in spec strings.\n"), stdout);
   fputs (_("  -dumpversion             Display the version of the compiler.\n"), stdout);
   fputs (_("  -dumpmachine             Display the compiler's target processor.\n"), stdout);
+  fputs (_("  -foffload=<targets>      Specify offloading targets.\n"), stdout);
   fputs (_("  -print-search-dirs       Display the directories in the compiler's search path.\n"), stdout);
   fputs (_("  -print-libgcc-file-name  Display the name of the compiler's companion library.\n"), stdout);
   fputs (_("  -print-file-name=<lib>   Display the full path to library <lib>.\n"), stdout);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-26  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26  9:13 [gcc/devel/omp/gcc-11] gcc.c: Add -foffload= to display_help Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).