Commit fa8d6f07 by Arnaud Charlet

[multiple changes]

2010-10-07  Robert Dewar  <dewar@adacore.com>

	* gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting

2010-10-07  Arnaud Charlet  <charlet@adacore.com>

	* exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.

From-SVN: r165088
parent 2b48f20d
2010-10-07 Robert Dewar <dewar@adacore.com> 2010-10-07 Robert Dewar <dewar@adacore.com>
* gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2010-10-07 Arnaud Charlet <charlet@adacore.com>
* exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2010-10-07 Robert Dewar <dewar@adacore.com>
* sem_res.adb: Minor reformatting * sem_res.adb: Minor reformatting
2010-10-07 Olivier Ramonat <ramonat@adacore.com> 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
......
...@@ -1249,7 +1249,8 @@ package body Exp_Ch11 is ...@@ -1249,7 +1249,8 @@ package body Exp_Ch11 is
begin begin
-- There is no expansion needed when compiling for the JVM since the -- There is no expansion needed when compiling for the JVM since the
-- JVM has a built-in exception mechanism. See 4jexcept.ads for details. -- JVM has a built-in exception mechanism. See cil/gnatlib/a-except.ads
-- for details.
if VM_Target /= No_VM then if VM_Target /= No_VM then
return; return;
......
...@@ -407,8 +407,13 @@ procedure GNATCmd is ...@@ -407,8 +407,13 @@ procedure GNATCmd is
(Main).Value), (Main).Value),
"ci")); "ci"));
if not Is_Regular_File (File.all) and then -- When looking for the .ci file for a binder
B_Start.all /= "b__" -- generated file, look for both b~xxx and b__xxx
-- as gprbuild always uses b__ as the prefix of
-- such files.
if not Is_Regular_File (File.all)
and then B_Start.all /= "b__"
then then
File := File :=
new String' new String'
......
...@@ -1842,7 +1842,6 @@ package body Make is ...@@ -1842,7 +1842,6 @@ package body Make is
end if; end if;
elsif not Read_Only and then Main_Project /= No_Project then elsif not Read_Only and then Main_Project /= No_Project then
if not Check_Source_Info_In_ALI (ALI, Project_Tree) then if not Check_Source_Info_In_ALI (ALI, Project_Tree) then
ALI := No_ALI_Id; ALI := No_ALI_Id;
return; return;
......
...@@ -7624,7 +7624,9 @@ package body Prj.Nmsc is ...@@ -7624,7 +7624,9 @@ package body Prj.Nmsc is
if Id.File /= Replaced_By.File then if Id.File /= Replaced_By.File then
declare declare
Replacement : constant File_Name_Type := Replacement : constant File_Name_Type :=
Replaced_Source_HTable.Get (Tree.Replaced_Sources, Id.File); Replaced_Source_HTable.Get
(Tree.Replaced_Sources, Id.File);
begin begin
Replaced_Source_HTable.Set Replaced_Source_HTable.Set
(Tree.Replaced_Sources, Id.File, Replaced_By.File); (Tree.Replaced_Sources, Id.File, Replaced_By.File);
......
...@@ -944,8 +944,8 @@ package body Sem_Elab is ...@@ -944,8 +944,8 @@ package body Sem_Elab is
-- which can happen if the body enclosing the call appears -- which can happen if the body enclosing the call appears
-- itself in a call whose elaboration check is delayed. -- itself in a call whose elaboration check is delayed.
if if Nkind_In (N, N_Function_Call,
Nkind_In (N, N_Function_Call, N_Procedure_Call_Statement) N_Procedure_Call_Statement)
then then
Set_No_Elaboration_Check (N); Set_No_Elaboration_Check (N);
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