[Ada] Add push/pop capability in Output
authorArnaud Charlet <charlet@adacore.com>
Thu, 23 Jul 2020 12:57:22 +0000 (08:57 -0400)
committerArnaud Charlet <charlet@adacore.com>
Thu, 23 Jul 2020 12:57:22 +0000 (08:57 -0400)
commit0c111868b791a5251de7a59362e15c51cd35362b
treedba4bb4460ca9b0d833195f5a60c1648197b878e
parent2949e0865723e011279a504e3fe913062c8d6e0b
[Ada] Add push/pop capability in Output

Add the capability to use the Write_* procedures in an environment where
you want to write debugging info but still use them to write to other
files (such a C source files).

gcc/ada/

* output.ads (Push_Output, Pop_Output): New procedures.
* output.adb (FD_Array, FD_Stack, FD_Stack_Idx): New type and vars.
(Push_Output, Pop_Output): New procedures.
gcc/ada/output.adb
gcc/ada/output.ads