Before this patch, the gnat command sent to standard error pieces of
information that are a better match for standard output. This patch
makes this information go to standard output.
gcc/ada/
* gnatcmd.adb (GNATCmd): Fix standard output stream.
-- Start of processing for GNATCmd
begin
- -- All output from GNATCmd is debugging or error output: send to stderr
+ -- Almost all output from GNATCmd is debugging or error output: send to
+ -- stderr.
Set_Standard_Error;
elsif Command_Arg <= Argument_Count
and then Argument (Command_Arg) = Ada_Help_Switch
then
+ Set_Standard_Output;
Usage;
Exit_Program (E_Success);
-- Add the following so that output is consistent with or without the
-- --help flag.
+ Set_Standard_Output;
Write_Eol;
Write_Line ("Report bugs to report@adacore.com");
return;