aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2021-06-30 14:49:48 +0200
committerTobias Burnus <tobias@codesourcery.com>2021-06-30 14:51:22 +0200
commit63fe82d80dee997b25ca60fa7d1ed07e97930976 (patch)
treecc14432ea8faa2d26275ec61401daa288a53fcae
parentf6bc9d9bddad7f9e3aad939bb6750770ac67f003 (diff)
downloadgcc-63fe82d80dee997b25ca60fa7d1ed07e97930976.zip
gcc-63fe82d80dee997b25ca60fa7d1ed07e97930976.tar.gz
gcc-63fe82d80dee997b25ca60fa7d1ed07e97930976.tar.bz2
gcc.c: Add -foffload= to display_help
gcc/ChangeLog: * common.opt (foffload): Remove help as Driver only. * gcc.c (display_help): Add -foffload.
-rw-r--r--gcc/common.opt3
-rw-r--r--gcc/gcc.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 2f5ff9f..5b03bbc 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 f802148..c8dbff6 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);