Commit 9e64a2c1 by Robert Dewar Committed by Arnaud Charlet

sem_res.adb, [...]: Minor reformatting.

2010-06-22  Robert Dewar  <dewar@adacore.com>

	* sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.

From-SVN: r161169
parent 0d6a035d
2010-06-22 Robert Dewar <dewar@adacore.com>
* sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
2010-06-22 Ed Schonberg <schonberg@adacore.com> 2010-06-22 Ed Schonberg <schonberg@adacore.com>
* sem_res.adb: Additional special-case for VMS. * sem_res.adb: Additional special-case for VMS.
......
...@@ -2567,8 +2567,8 @@ package body Errout is ...@@ -2567,8 +2567,8 @@ package body Errout is
Is_Unconditional_Msg := False; Is_Unconditional_Msg := False;
Msglen := 0; Msglen := 0;
Flag_Source := Get_Source_File_Index (Flag); Flag_Source := Get_Source_File_Index (Flag);
P := Text'First;
P := Text'First;
while P <= Text'Last loop while P <= Text'Last loop
C := Text (P); C := Text (P);
P := P + 1; P := P + 1;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2010, 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- --
...@@ -312,8 +312,8 @@ package body Sem_Aux is ...@@ -312,8 +312,8 @@ package body Sem_Aux is
Ent : Entity_Id; Ent : Entity_Id;
begin begin
-- If the base type has no freeze node, it is a type in Standard, -- If the base type has no freeze node, it is a type in Standard, and
-- and always acts as its own first subtype unless it is one of the -- always acts as its own first subtype, except where it is one of the
-- predefined integer types. If the type is formal, it is also a first -- predefined integer types. If the type is formal, it is also a first
-- subtype, and its base type has no freeze node. On the other hand, a -- subtype, and its base type has no freeze node. On the other hand, a
-- subtype of a generic formal is not its own first subtype. Its base -- subtype of a generic formal is not its own first subtype. Its base
...@@ -321,7 +321,6 @@ package body Sem_Aux is ...@@ -321,7 +321,6 @@ package body Sem_Aux is
-- the first subtype is obtained. -- the first subtype is obtained.
if No (F) then if No (F) then
if B = Base_Type (Standard_Integer) then if B = Base_Type (Standard_Integer) then
return Standard_Integer; return Standard_Integer;
......
...@@ -1452,9 +1452,8 @@ package body Sem_Res is ...@@ -1452,9 +1452,8 @@ package body Sem_Res is
null; null;
else else
-- Note: we go to First_Subtype here to ensure the message -- Note: go to First_Subtype here to ensure the message has the
-- has the proper source type name (Typ may be an anonymous -- proper source type name (Typ may be an anonymous base type).
-- base type).
-- Could we use Wrong_Type here??? (this would require setting -- Could we use Wrong_Type here??? (this would require setting
-- Etype (N) to the actual type found where Typ was expected). -- Etype (N) to the actual type found where Typ was expected).
......
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