Commit a01da44a by Arnaud Charlet

[multiple changes]

2012-08-06  Robert Dewar  <dewar@adacore.com>

	* s-oscons-tmplt.c, sem_ch9.adb, osint.adb: Minor reformatting.

2012-08-06  Hristian Kirtchev  <kirtchev@adacore.com>

	* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Remove obsolete
	Alfa-specific guard. The code is a leftover from an early
	implementation of iterators which is no longer in use.

2012-08-06  Vincent Celier  <celier@adacore.com>

	* par-ch13.adb (Get_Aspect_Specifications): Do not consider
	No_Aspect when checking for a mispelled aspect.

From-SVN: r190158
parent 1bd84c71
2012-08-06 Robert Dewar <dewar@adacore.com> 2012-08-06 Robert Dewar <dewar@adacore.com>
* s-oscons-tmplt.c, sem_ch9.adb, osint.adb: Minor reformatting.
2012-08-06 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Remove obsolete
Alfa-specific guard. The code is a leftover from an early
implementation of iterators which is no longer in use.
2012-08-06 Vincent Celier <celier@adacore.com>
* par-ch13.adb (Get_Aspect_Specifications): Do not consider
No_Aspect when checking for a mispelled aspect.
2012-08-06 Robert Dewar <dewar@adacore.com>
* s-htable.adb: Minor reformatting. * s-htable.adb: Minor reformatting.
2012-08-06 Thomas Quinot <quinot@adacore.com> 2012-08-06 Thomas Quinot <quinot@adacore.com>
......
...@@ -3103,9 +3103,9 @@ package body Osint is ...@@ -3103,9 +3103,9 @@ package body Osint is
return null; return null;
end To_Canonical_Path_Spec; end To_Canonical_Path_Spec;
--------------------------- ----------------------
-- To_Host_Dir_Spec -- -- To_Host_Dir_Spec --
--------------------------- ----------------------
function To_Host_Dir_Spec function To_Host_Dir_Spec
(Canonical_Dir : String; (Canonical_Dir : String;
...@@ -3138,9 +3138,9 @@ package body Osint is ...@@ -3138,9 +3138,9 @@ package body Osint is
end if; end if;
end To_Host_Dir_Spec; end To_Host_Dir_Spec;
---------------------------- -----------------------
-- To_Host_File_Spec -- -- To_Host_File_Spec --
---------------------------- -----------------------
function To_Host_File_Spec function To_Host_File_Spec
(Canonical_File : String) return String_Access (Canonical_File : String) return String_Access
......
...@@ -188,7 +188,9 @@ package body Ch13 is ...@@ -188,7 +188,9 @@ package body Ch13 is
-- Check bad spelling -- Check bad spelling
for J in Aspect_Id loop for J in Aspect_Id loop
if Is_Bad_Spelling_Of (Token_Name, Aspect_Names (J)) then if J /= No_Aspect and then
Is_Bad_Spelling_Of (Token_Name, Aspect_Names (J))
then
Error_Msg_Name_1 := Aspect_Names (J); Error_Msg_Name_1 := Aspect_Names (J);
Error_Msg_SC -- CODEFIX Error_Msg_SC -- CODEFIX
("\possible misspelling of%"); ("\possible misspelling of%");
......
...@@ -267,7 +267,7 @@ C("Target_OS", OS_Type, TARGET_OS, "") ...@@ -267,7 +267,7 @@ C("Target_OS", OS_Type, TARGET_OS, "")
/* /*
pragma Warnings (Off, Target_OS); pragma Warnings (Off, Target_OS);
-- Suppress warnings on Target_OS since it is in general tested for -- Suppress warnings on Target_OS since it is in general tested for
-- equality with a constant valueto implement conditional compilation, -- equality with a constant value to implement conditional compilation,
-- which normally generates a constant condition warning. -- which normally generates a constant condition warning.
*/ */
......
...@@ -2226,18 +2226,8 @@ package body Sem_Ch5 is ...@@ -2226,18 +2226,8 @@ package body Sem_Ch5 is
-- Ada 2012: If the domain of iteration is a function call, it is the -- Ada 2012: If the domain of iteration is a function call, it is the
-- new iterator form. -- new iterator form.
-- We have also implemented the shorter form : for X in S for Alfa
-- use. In this case, 'Old and 'Result must be treated as entity
-- names over which iterators are legal.
if Nkind (DS_Copy) = N_Function_Call if Nkind (DS_Copy) = N_Function_Call
or else or else
(Alfa_Mode
and then (Nkind (DS_Copy) = N_Attribute_Reference
and then
(Attribute_Name (DS_Copy) = Name_Result
or else Attribute_Name (DS_Copy) = Name_Old)))
or else
(Is_Entity_Name (DS_Copy) (Is_Entity_Name (DS_Copy)
and then not Is_Type (Entity (DS_Copy))) and then not Is_Type (Entity (DS_Copy)))
then then
......
...@@ -350,9 +350,9 @@ package body Sem_Ch9 is ...@@ -350,9 +350,9 @@ package body Sem_Ch9 is
Get_Aspect_Id (Asp_Name); Get_Aspect_Id (Asp_Name);
begin begin
if Asp_Id = Aspect_Address if Asp_Id = Aspect_Address or else
or else Asp_Id = Aspect_Export Asp_Id = Aspect_Export or else
or else Asp_Id = Aspect_Import Asp_Id = Aspect_Import
then then
Error_Msg_Name_1 := Asp_Name; Error_Msg_Name_1 := Asp_Name;
......
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