[Bug driver/31350] gcc -v --help puts some output on std. out, and some on std. error.
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Oct 7 01:12:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31350
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Some of this is not a GCC bug but a binutils one I think or maybe not a bug
> at all.
At least all the GNU tools should follow the GNU Coding Guidelines:
https://www.gnu.org/prep/standards/html_node/_002d_002dhelp.html#g_t_002d_002dhelp
Thus, the correct behavior is to use stdout for --help.
However, the output of "-v" is not "verbose help". You get the same output
independently of --help. It is simply verbose diagnostics about what GCC is
doing and they should go to stderr. Thus, this is not a bug.
If you find something in the output of --help= or --version that is printed to
stderr, please re-open.
More information about the Gcc-bugs
mailing list