On 3/31/2022 12:56 AM, Martin Liška wrote:
Hi.
Before the patch we have:
$ gcc-11 --help | grep target-help
--target-help Display target specific command line options.
$ gcc-11 --help=common | grep target-help
--target-help Alias for --help=target.
and --target-help prints undocumented options (that was reported in
the PR).
After my change we do:
$ gcc --help | grep target-help
--target-help Display target specific command line
options (including assembler and linker options).
$ gcc --help=common | grep target-help
--target-help Display target specific command line
options (including assembler and linker options).
and the undocumented options are not printed.
Ready to be installed after tests?
Thanks,
Martin
PR driver/105096
gcc/ChangeLog:
* common.opt: Document properly based on what it does.
* gcc.cc (display_help): Unify with what we have in common.opt.
* opts.cc (common_handle_option): Do not print undocumented
options.
OK
jeff