https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104027
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Pierre-Marie de Rodat <pmdero...@gcc.gnu.org>: https://gcc.gnu.org/g:2dbc237e8605bb87f8b25adc455436dcba41fce8 commit r12-6943-g2dbc237e8605bb87f8b25adc455436dcba41fce8 Author: Arnaud Charlet <char...@adacore.com> Date: Mon Jan 24 14:16:27 2022 -0500 [Ada] Fix up handling of ghost units PR104027 #2 gcc/ada/ PR ada/104027 * gnat1drv.adb (Gnat1drv): Only call Exit_Program when not generating code, otherwise instead go to End_Of_Program.