public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch] gcc.c: Add -foffload= to display_help
@ 2021-06-30 12:24 Tobias Burnus
  2021-06-30 12:26 ` Jakub Jelinek
  2021-06-30 12:43 ` RFC: --help for Driver options (was: [Patch] gcc.c: Add -foffload= to display_help) Tobias Burnus
  0 siblings, 2 replies; 4+ messages in thread
From: Tobias Burnus @ 2021-06-30 12:24 UTC (permalink / raw)
  To: gcc-patches, Jakub Jelinek

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

This is a side effect of removing 'foffload=' from Common
as Driver only does not show up with --help=... but only
as hard-coded list via display_help.

OK?

Tobias

PS: additional remarks in the next email.

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf

[-- Attachment #2: helpfix.diff --]
[-- Type: text/x-patch, Size: 1569 bytes --]

gcc.c: Add -foffload= to display_help

gcc/ChangeLog:

	* common.opt (foffload): Remove help as Driver only.
	* gcc.c (display_help): Add -foffload.

diff --git a/gcc/common.opt b/gcc/common.opt
index 2f5ff9f02e9..5b03bbc6662 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2100,11 +2100,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 f802148e567..c8dbff61307 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3752,6 +3752,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] 4+ messages in thread

end of thread, other threads:[~2021-06-30 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-30 12:24 [Patch] gcc.c: Add -foffload= to display_help Tobias Burnus
2021-06-30 12:26 ` Jakub Jelinek
2021-06-30 12:43 ` RFC: --help for Driver options (was: [Patch] gcc.c: Add -foffload= to display_help) Tobias Burnus
2021-06-30 18:08   ` Joseph Myers

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).