[Ada] Revert r12-6599 (Fix up handling of ghost units [PR104027])
authorPierre-Marie de Rodat <derodat@adacore.com>
Tue, 26 Apr 2022 09:51:47 +0000 (09:51 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 27 Apr 2022 08:00:33 +0000 (08:00 +0000)
gcc/ada/

PR ada/104027
* gnat1drv.adb: Remove the goto End_Of_Program.

gcc/ada/gnat1drv.adb

index f85bc13..0a11619 100644 (file)
@@ -1429,11 +1429,6 @@ begin
             Ecode := E_Success;
             Back_End.Gen_Or_Update_Object_File;
 
-            --  Use a goto instead of calling Exit_Program so that finalization
-            --  occurs normally.
-
-            goto End_Of_Program;
-
          --  Otherwise the unit is missing a crucial piece that prevents code
          --  generation.