Commit 1ca46a77 by Arnaud Charlet

[multiple changes]

2015-05-21  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch5.adb: minor reformatting.

2015-05-21  Robert Dewar  <dewar@adacore.com>

	* freeze.adb (Freeze_Entity): Properly tag -gnatw.z messages.

From-SVN: r223482
parent a7a629d7
2015-05-21 Ed Schonberg <schonberg@adacore.com>
* sem_ch5.adb: minor reformatting.
2015-05-21 Robert Dewar <dewar@adacore.com>
* freeze.adb (Freeze_Entity): Properly tag -gnatw.z messages.
2015-05-21 Robert Dewar <dewar@adacore.com> 2015-05-21 Robert Dewar <dewar@adacore.com>
* freeze.adb: Minor reformatting. * freeze.adb: Minor reformatting.
......
...@@ -5256,22 +5256,24 @@ package body Freeze is ...@@ -5256,22 +5256,24 @@ package body Freeze is
if Sloc (SC) > Sloc (AC) then if Sloc (SC) > Sloc (AC) then
Loc := SC; Loc := SC;
Error_Msg_NE Error_Msg_NE
("??size is not a multiple of alignment for &", Loc, E); ("?Z?size is not a multiple of alignment for &",
Loc, E);
Error_Msg_Sloc := Sloc (AC); Error_Msg_Sloc := Sloc (AC);
Error_Msg_Uint_1 := Alignment (E); Error_Msg_Uint_1 := Alignment (E);
Error_Msg_N ("\??alignment of ^ specified #", Loc); Error_Msg_N ("\?Z?alignment of ^ specified #", Loc);
else else
Loc := AC; Loc := AC;
Error_Msg_NE Error_Msg_NE
("??size is not a multiple of alignment for &", Loc, E); ("?Z?size is not a multiple of alignment for &",
Loc, E);
Error_Msg_Sloc := Sloc (SC); Error_Msg_Sloc := Sloc (SC);
Error_Msg_Uint_1 := RM_Size (E); Error_Msg_Uint_1 := RM_Size (E);
Error_Msg_N ("\??size of ^ specified #", Loc); Error_Msg_N ("\?Z?size of ^ specified #", Loc);
end if; end if;
Error_Msg_Uint_1 := ((RM_Size (E) / Abits) + 1) * Abits; Error_Msg_Uint_1 := ((RM_Size (E) / Abits) + 1) * Abits;
Error_Msg_N ("\??Object_Size will be increased to ^", Loc); Error_Msg_N ("\?Z?Object_Size will be increased to ^", Loc);
end if; end if;
end; end;
end if; end if;
......
...@@ -1727,9 +1727,9 @@ package body Sem_Ch5 is ...@@ -1727,9 +1727,9 @@ package body Sem_Ch5 is
-- implements the reversible iterator interface. -- implements the reversible iterator interface.
function Get_Cursor_Type (Typ : Entity_Id) return Entity_Id; function Get_Cursor_Type (Typ : Entity_Id) return Entity_Id;
-- For containers with Iterator and related aspects, the cursor the -- For containers with Iterator and related aspects, the cursor is
-- is obtained by locating an entity with the proper name in the -- obtained by locating an entity with the proper name in the scope
-- scope of the type. -- of the type.
----------------------------- -----------------------------
-- Check_Reverse_Iteration -- -- Check_Reverse_Iteration --
...@@ -2179,8 +2179,7 @@ package body Sem_Ch5 is ...@@ -2179,8 +2179,7 @@ package body Sem_Ch5 is
elsif Iter_Kind = N_Function_Call then elsif Iter_Kind = N_Function_Call then
Obj := First_Actual (Original_Node (Iter_Name)); Obj := First_Actual (Original_Node (Iter_Name));
-- If neither, likely previous error, make sure Obj has some -- If neither, the name comes from source
-- reasonable value in such a case.
else else
Obj := Iter_Name; Obj := Iter_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