Commit c8e072da by Arnaud Charlet

[multiple changes]

2017-09-07  Vincent Celier  <celier@adacore.com>

	* clean.adb: Do not get the target parameters before calling
	gprclean.

2017-09-07  Nicolas Roche  <roche@adacore.com>

	* s-osinte-solaris-posix.ads: Removed.

From-SVN: r251841
parent 83b77c5c
2017-09-07 Vincent Celier <celier@adacore.com>
* clean.adb: Do not get the target parameters before calling
gprclean.
2017-09-07 Nicolas Roche <roche@adacore.com>
* s-osinte-solaris-posix.ads: Removed.
2017-09-07 Arnaud Charlet <charlet@adacore.com> 2017-09-07 Arnaud Charlet <charlet@adacore.com>
* sem_prag.adb (Collect_States_And_Objects): Detect also instances of * sem_prag.adb (Collect_States_And_Objects): Detect also instances of
......
...@@ -24,18 +24,15 @@ ...@@ -24,18 +24,15 @@
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with ALI; use ALI; with ALI; use ALI;
with Csets;
with Make_Util; use Make_Util; with Make_Util; use Make_Util;
with Namet; use Namet; with Namet; use Namet;
with Opt; use Opt; with Opt; use Opt;
with Osint; use Osint; with Osint; use Osint;
with Osint.M; use Osint.M; with Osint.M; use Osint.M;
with Snames; with Switch; use Switch;
with Stringt;
with Switch; use Switch;
with Table; with Table;
with Targparm; use Targparm; with Targparm; use Targparm;
with Types; use Types; with Types; use Types;
with Ada.Command_Line; use Ada.Command_Line; with Ada.Command_Line; use Ada.Command_Line;
...@@ -46,10 +43,6 @@ with GNAT.OS_Lib; use GNAT.OS_Lib; ...@@ -46,10 +43,6 @@ with GNAT.OS_Lib; use GNAT.OS_Lib;
package body Clean is package body Clean is
Initialized : Boolean := False;
-- Set to True by the first call to Initialize to avoid reinitialization of
-- some packages.
-- Suffixes of various files -- Suffixes of various files
Assembly_Suffix : constant String := ".s"; Assembly_Suffix : constant String := ".s";
...@@ -492,6 +485,7 @@ package body Clean is ...@@ -492,6 +485,7 @@ package body Clean is
end if; end if;
Osint.Add_Default_Search_Dirs; Osint.Add_Default_Search_Dirs;
Targparm.Get_Target_Parameters;
if Osint.Number_Of_Files = 0 then if Osint.Number_Of_Files = 0 then
if Argument_Count = 0 then if Argument_Count = 0 then
...@@ -577,23 +571,6 @@ package body Clean is ...@@ -577,23 +571,6 @@ package body Clean is
procedure Initialize is procedure Initialize is
begin begin
if not Initialized then
Initialized := True;
-- Get default search directories to locate system.ads when calling
-- Targparm.Get_Target_Parameters.
Osint.Add_Default_Search_Dirs;
-- Initialize some packages
Csets.Initialize;
Snames.Initialize;
Stringt.Initialize;
Targparm.Get_Target_Parameters;
end if;
-- Reset global variables -- Reset global variables
Free (Object_Directory_Path); Free (Object_Directory_Path);
...@@ -701,6 +678,9 @@ package body Clean is ...@@ -701,6 +678,9 @@ package body Clean is
if Success then if Success then
Exit_Program (E_Success); Exit_Program (E_Success);
else
Exit_Program (E_Fatal);
end if; end if;
end; end;
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment