Commit 099ace5e by Arnaud Charlet

[multiple changes]

2010-09-09  Robert Dewar  <dewar@adacore.com>

	* sem_util.adb: Minor reformatting

2010-09-09  Vincent Celier  <celier@adacore.com>

	* vms_data.ads: Add documentation for S_Make_Single.

From-SVN: r164068
parent 02954c25
2010-09-09 Robert Dewar <dewar@adacore.com>
* sem_util.adb: Minor reformatting
2010-09-09 Vincent Celier <celier@adacore.com>
* vms_data.ads: Add documentation for S_Make_Single.
2010-09-09 Ed Schonberg <schonberg@adacore.com> 2010-09-09 Ed Schonberg <schonberg@adacore.com>
* sem_util.adb (Same_Object): include formal parameters. * sem_util.adb (Same_Object): include formal parameters.
......
...@@ -6572,7 +6572,7 @@ package body Sem_Util is ...@@ -6572,7 +6572,7 @@ package body Sem_Util is
-- the corresponding procedure has been created, and which therefore do -- the corresponding procedure has been created, and which therefore do
-- not have an assigned scope. -- not have an assigned scope.
if Ekind (E) in Formal_Kind then if Is_Formal (E) then
return False; return False;
end if; end if;
...@@ -10532,22 +10532,24 @@ package body Sem_Util is ...@@ -10532,22 +10532,24 @@ package body Sem_Util is
begin begin
-- First case, both are entities with same entity -- First case, both are entities with same entity
if K1 in N_Has_Entity if K1 in N_Has_Entity and then K2 in N_Has_Entity then
and then K2 in N_Has_Entity declare
and then Present (Entity (N1)) EN1 : constant Entity_Id := Entity (N1);
and then Present (Entity (N2)) EN2 : constant Entity_Id := Entity (N2);
and then (Ekind (Entity (N1)) = E_Variable begin
or else if Present (EN1) and then Present (EN2)
Ekind (Entity (N1)) = E_Constant and then (Ekind_In (EN1, E_Variable, E_Constant)
or else or else Is_Formal (EN1))
Ekind (Entity (N1)) in Formal_Kind) and then EN1 = EN2
and then Entity (N1) = Entity (N2)
then then
return True; return True;
end if;
end;
end if;
-- Second case, selected component with same selector, same record -- Second case, selected component with same selector, same record
elsif K1 = N_Selected_Component if K1 = N_Selected_Component
and then K2 = N_Selected_Component and then K2 = N_Selected_Component
and then Chars (Selector_Name (N1)) = Chars (Selector_Name (N2)) and then Chars (Selector_Name (N1)) = Chars (Selector_Name (N2))
then then
......
...@@ -4860,6 +4860,11 @@ package VMS_Data is ...@@ -4860,6 +4860,11 @@ package VMS_Data is
S_Make_Single : aliased constant S := "/SINGLE_COMPILE_PER_OBJ_DIR " & S_Make_Single : aliased constant S := "/SINGLE_COMPILE_PER_OBJ_DIR " &
"--single-compile-per-obj-dir"; "--single-compile-per-obj-dir";
-- /NOSINGLE_COMPILE_PER_OBJ_DIR (D)
-- /SINGLE_COMPILE_PER_OBJ_DIR
--
-- When project files are used, do not allow simultaneous compilations
-- for the same object directory.
S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" & S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
"-aL*"; "-aL*";
......
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