+@item -print-sysroot
+@opindex print-sysroot
+Print the target sysroot directory that will be used during
+compilation. This is the target sysroot specified either at configure
+time or or using the @option{--sysroot} option, possibly with an extra
+suffix that depends on compilation options. If no target sysroot is
+specified, the options prints nothing.
OK?
[gcc]
* gcc.c (print_sysroot): New.
(option_map, display_help, process_command): Handle the
-print-sysroot option.
(main): Print the sysroot if requested.
[gcc/doc]
* invoke.texi (Debugging Options): Document -print-sysroot.