diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2024-08-21 15:10:38 +0200 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-09-02 10:22:50 +0200 |
commit | 2df253f35eec84a7dd7d4b0eaf4b1c052177044c (patch) | |
tree | a7c4376ac826fbda3d66062f11f6ea19e00e24b4 | |
parent | 91f0a3a5a5c44b4ab0f97d6b1a9bd1c6b36b5736 (diff) | |
download | gcc-2df253f35eec84a7dd7d4b0eaf4b1c052177044c.zip gcc-2df253f35eec84a7dd7d4b0eaf4b1c052177044c.tar.gz gcc-2df253f35eec84a7dd7d4b0eaf4b1c052177044c.tar.bz2 |
ada: Fix standard output stream for gnatcmd output
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.
-rw-r--r-- | gcc/ada/gnatcmd.adb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ada/gnatcmd.adb b/gcc/ada/gnatcmd.adb index c1b817b..ed37a34 100644 --- a/gcc/ada/gnatcmd.adb +++ b/gcc/ada/gnatcmd.adb @@ -278,7 +278,8 @@ procedure GNATCmd is -- 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; @@ -349,6 +350,7 @@ begin elsif Command_Arg <= Argument_Count and then Argument (Command_Arg) = Ada_Help_Switch then + Set_Standard_Output; Usage; Exit_Program (E_Success); @@ -364,6 +366,7 @@ begin -- 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; |