Commit fb8d37ef by Arnaud Charlet Committed by Arnaud Charlet

make.adb: Minor...

2016-05-02  Arnaud Charlet  <charlet@adacore.com>

	* make.adb: Minor: avoid an exception when calling gnatmake with
	no argument and gnatmake is built with checks on.
	* lib-xref-spark_specific.adb: Minor code cleanup.

From-SVN: r235725
parent 7cc9a6a9
2016-05-02 Arnaud Charlet <charlet@adacore.com>
* make.adb: Minor: avoid an exception when calling gnatmake with
no argument and gnatmake is built with checks on.
* lib-xref-spark_specific.adb: Minor code cleanup.
2016-05-02 Ed Schonberg <schonberg@adacore.com> 2016-05-02 Ed Schonberg <schonberg@adacore.com>
* sem_util.adb (Normalize_Actuals): Take into account extra * sem_util.adb (Normalize_Actuals): Take into account extra
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2011-2015, Free Software Foundation, Inc. -- -- Copyright (C) 2011-2016, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -178,7 +178,7 @@ package body SPARK_Specific is ...@@ -178,7 +178,7 @@ package body SPARK_Specific is
-- Update scope numbers -- Update scope numbers
declare declare
Scope_Id : Int; Scope_Id : Pos;
begin begin
Scope_Id := 1; Scope_Id := 1;
for Index in From .. SPARK_Scope_Table.Last loop for Index in From .. SPARK_Scope_Table.Last loop
...@@ -917,8 +917,8 @@ package body SPARK_Specific is ...@@ -917,8 +917,8 @@ package body SPARK_Specific is
(Sdep_Table : Unit_Ref_Table; (Sdep_Table : Unit_Ref_Table;
Num_Sdep : Nat) Num_Sdep : Nat)
is is
D1 : Nat; D1 : Pos;
D2 : Nat; D2 : Pos;
begin begin
-- Cross-references should have been computed first -- Cross-references should have been computed first
...@@ -991,9 +991,9 @@ package body SPARK_Specific is ...@@ -991,9 +991,9 @@ package body SPARK_Specific is
Srec : SPARK_Scope_Record renames SPARK_Scope_Table.Table (S); Srec : SPARK_Scope_Record renames SPARK_Scope_Table.Table (S);
Spec_Entity : constant Entity_Id := Spec_Entity : constant Entity_Id :=
Unique_Entity (Srec.Scope_Entity); Unique_Entity (Srec.Scope_Entity);
Spec_Scope : constant Scope_Index := Spec_Scope : constant Scope_Index :=
Entity_Hash_Table.Get (Spec_Entity); Entity_Hash_Table.Get (Spec_Entity);
begin begin
-- Generic spec may be missing in which case Spec_Scope is zero -- Generic spec may be missing in which case Spec_Scope is zero
......
...@@ -6418,7 +6418,7 @@ package body Make is ...@@ -6418,7 +6418,7 @@ package body Make is
-- platform. -- platform.
declare declare
Arg_Len : Positive := Argument_Count; Arg_Len : Natural := Argument_Count;
Call_Gprbuild : Boolean := False; Call_Gprbuild : Boolean := False;
Gprbuild : String_Access := null; Gprbuild : String_Access := null;
Pos : Natural := 0; Pos : Natural := 0;
......
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