]> git.ipfire.org Git - people/ms/gcc.git/commit
[Ada] Output.w always writes to stderr
authorBob Duff <duff@adacore.com>
Wed, 23 Mar 2022 14:27:44 +0000 (10:27 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 17 May 2022 08:25:46 +0000 (08:25 +0000)
commitb81c9e4f9f48f6e65d2e7e02d928e31f24a37c63
treef6b19b887f4e0078bf67a6e13725bcdba23b0550
parenta2bcadcef01990526712d07b4cbcdd6e47ad3da9
[Ada] Output.w always writes to stderr

There are several debugging procedures called Output.w, and some
output-redirection features. This patch modifies Output.w so their
output is not redirected; it always goes to standard error. Otherwise,
debugging output can get mixed in with some "real" output (perhaps to a
file), which causes confusion and in some cases failure to build.

gcc/ada/

* output.adb (Pop_Output, Set_Output): Unconditionally flush
output when switching from one output destination to another.
Otherwise buffering can cause garbled output.
(w): Push/pop the current settings, and temporarily
Set_Standard_Error during these procedures.
gcc/ada/output.adb