@@ -743,6 +743,9 @@ Warn when a vector operation is compiled outside the SIMD
Xassembler
Driver Separate
+Xclang-only
+Driver Joined
+
Xlinker
Driver Separate
@@ -9560,6 +9560,11 @@ systems using the GNU linker. On some targets, such as bare-board
targets without an operating system, the @option{-T} option may be required
when linking to avoid references to undefined symbols.
+@item -Xclang-only @var{option}
+@opindex Xclang-only
+Ignore @var{option}. This is used by some custom drivers to pass options
+to Clang but not GCC.
+
@item -Xlinker @var{option}
@opindex Xlinker
Pass @var{option} as an option to the linker. You can use this to
@@ -2983,6 +2983,7 @@ display_help (void)
fputs (_(" -Xassembler <arg> Pass <arg> on to the assembler\n"), stdout);
fputs (_(" -Xpreprocessor <arg> Pass <arg> on to the preprocessor\n"), stdout);
fputs (_(" -Xlinker <arg> Pass <arg> on to the linker\n"), stdout);
+ fputs (_(" -Xclang-only=<arg> Ignore <arg>\n"), stdout);
fputs (_(" -save-temps Do not delete intermediate files\n"), stdout);
fputs (_(" -save-temps=<arg> Do not delete intermediate files\n"), stdout);
fputs (_("\
@@ -3353,6 +3354,11 @@ driver_handle_option (struct gcc_options *opts,
do_save = false;
break;
+ case OPT_Xclang_only:
+ /* Ignore the argument. Used by some drivers to selectively pass
+ arguments to clang. */
+ break;
+
case OPT_Xlinker:
add_infile (arg, "*");
do_save = false;