+2015-05-26 Bob Duff <duff@adacore.com>
+
+ * einfo.adb, einfo.ads, sprint.adb, lib-xref.ads: Minor cleanup: Remove
+ obsolete Entity_Kinds E_String_Type and E_String_Subtype. Update
+ redundant assertions.
+
+2015-05-26 Gary Dismukes <dismukes@adacore.com>
+
+ * sem_util.adb, sem_util.ads, sem_ch13.adb: Minor typo fixes.
+
2015-05-26 Doug Rupp <rupp@adacore.com>
* init.c [vxworks]: Refine previous checkin.
function Component_Type (Id : E) return E is
begin
- pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
+ pragma Assert (Is_Array_Type (Id));
return Node20 (Implementation_Base_Type (Id));
end Component_Type;
function First_Index (Id : E) return N is
begin
- pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
+ pragma Assert (Is_Array_Type (Id));
return Node17 (Id);
end First_Index;
procedure Set_First_Index (Id : E; V : N) is
begin
- pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
+ pragma Assert (Is_Array_Type (Id));
Set_Node17 (Id, V);
end Set_First_Index;
E_Ordinary_Fixed_Point_Subtype |
E_Decimal_Fixed_Point_Subtype |
E_Array_Subtype |
- E_String_Subtype |
E_Record_Subtype |
E_Private_Subtype |
E_Record_Subtype_With_Private |
-- An array subtype, created by an explicit array subtype declaration,
-- or the use of an anonymous array subtype.
- E_String_Type,
- E_String_Subtype,
- -- These are obsolete and not used any more, they are retained to ease
- -- transition in getting rid of these obsolete entries.
-
E_String_Literal_Subtype,
-- A special string subtype, used only to describe the type of a string
-- literal (will always be one dimensional, with literal bounds).
-- --
-- S p e c --
-- --
--- Copyright (C) 1998-2014, Free Software Foundation, Inc. --
+-- Copyright (C) 1998-2015, Free Software Foundation, Inc. --
-- --
-- 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- --
E_Variable => '*',
E_Void => ' ',
- -- These are dummy entries which can be removed when we finally get
- -- rid of these obsolete entries once and for all.
-
- E_String_Type => ' ',
- E_String_Subtype => ' ',
-
-- The following entities are not ones to which we gather the cross-
-- references, since it does not make sense to do so (e.g. references to
-- a package are to the spec, not the body) Indeed the occurrence of the
and then Pragma_Name (Ritem) = Name_Predicate
then
-- Acquire arguments. The expression itself is copied for use
- -- in the predicate function, to preserve the orignal version
+ -- in the predicate function, to preserve the original version
-- for ASIS use.
Arg1 := First (Pragma_Argument_Associations (Ritem));
P : Node_Id;
begin
- -- Simplest case : entity is a concurrent type and we are currently
+ -- Simplest case: entity is a concurrent type and we are currently
-- inside the body. This will eventually be expanded into a
-- call to Self (for tasks) or _object (for protected objects).
end loop;
end if;
- -- In any other context this is not a current occurence
+ -- In any other context this is not a current occurrence
return False;
end Is_Current_Instance;
function Is_Current_Instance (N : Node_Id) return Boolean;
-- Predicate is true if N legally denotes a type name within its own
-- declaration. Prior to Ada 2012 this covered only synchronized type
- -- declarations. In Ada2012 it also covers type and subtype declarations
+ -- declarations. In Ada 2012 it also covers type and subtype declarations
-- with aspects: Invariant, Predicate, and Default_Initial_Condition.
function Is_Declaration (N : Node_Id) return Boolean;
Write_Id (Directly_Designated_Type (Typ));
- -- Array types and string types
+ -- Array types
when E_Array_Type =>
Write_Header;
Sprint_Node (X);
Set_Sloc (X, Old_Sloc);
- -- Array subtypes and string subtypes.
+ -- Array subtypes.
-- Preserve Sloc of index subtypes, as above.
- when E_Array_Subtype | E_String_Subtype =>
+ when E_Array_Subtype =>
Write_Header (False);
Write_Id (Etype (Typ));
Write_Str (" (");