aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/einfo.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2010-10-07 11:12:36 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2010-10-07 11:12:36 +0200
commit599a741170b384ab63f23b9761f5456932001f64 (patch)
tree1c6828774f1440e62389af41a529b13b12382b3a /gcc/ada/einfo.ads
parent0eb4c1a7cc05913b39bb6239e20a73b964e4ae95 (diff)
downloadgcc-599a741170b384ab63f23b9761f5456932001f64.zip
gcc-599a741170b384ab63f23b9761f5456932001f64.tar.gz
gcc-599a741170b384ab63f23b9761f5456932001f64.tar.bz2
[multiple changes]
2010-10-07 Robert Dewar <dewar@adacore.com> * sem_attr.adb: Minor reformatting. * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag properly. * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in non-Ada 2012 mode. * opt.ads (Warn_On_Ada_2012_Compatibility): New flag * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only flag. * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with argument. * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only. * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated same as 2005 flag. 2010-10-07 Javier Miranda <miranda@adacore.com> * a-tags.ads: Use new support for pragma Ada_2012 with function Type_Is_Abstract. From-SVN: r165082
Diffstat (limited to 'gcc/ada/einfo.ads')
-rw-r--r--gcc/ada/einfo.ads21
1 files changed, 17 insertions, 4 deletions
diff --git a/gcc/ada/einfo.ads b/gcc/ada/einfo.ads
index 7a396c7..ed91d5e 100644
--- a/gcc/ada/einfo.ads
+++ b/gcc/ada/einfo.ads
@@ -1889,10 +1889,18 @@ package Einfo is
-- Applies to all entities, true for access types and subtypes
-- Is_Ada_2005_Only (Flag185)
--- Present in all entities, true if a valid pragma Ada_05 applies to the
--- entity which specifically names the entity, indicating that the entity
--- is Ada 2005 only. Note that this flag is not set if the entity is part
--- of a unit compiled with the normal no-argument form of pragma Ada_05.
+-- Present in all entities, true if a valid pragma Ada_05 or Ada_2005
+-- applies to the entity which specifically names the entity, indicating
+-- that the entity is Ada 2005 only. Note that this flag is not set if
+-- the entity is part of a unit compiled with the normal no-argument form
+-- of pragma Ada_05 or Ada_2005.
+
+-- Is_Ada_2012_Only (Flag199)
+-- Present in all entities, true if a valid pragma Ada_12 or Ada_2012
+-- applies to the entity which specifically names the entity, indicating
+-- that the entity is Ada 2012 only. Note that this flag is not set if
+-- the entity is part of a unit compiled with the normal no-argument form
+-- of pragma Ada_12 or Ada_2012.
-- Is_Aliased (Flag15)
-- Present in objects whose declarations carry the keyword aliased,
@@ -4589,6 +4597,7 @@ package Einfo is
-- Has_Xref_Entry (Flag182)
-- In_Private_Part (Flag45)
-- Is_Ada_2005_Only (Flag185)
+ -- Is_Ada_2012_Only (Flag199)
-- Is_Bit_Packed_Array (Flag122) (base type only)
-- Is_Character_Type (Flag63)
-- Is_Child_Unit (Flag73)
@@ -5932,6 +5941,7 @@ package Einfo is
function Is_Abstract_Type (Id : E) return B;
function Is_Access_Constant (Id : E) return B;
function Is_Ada_2005_Only (Id : E) return B;
+ function Is_Ada_2012_Only (Id : E) return B;
function Is_Aliased (Id : E) return B;
function Is_Asynchronous (Id : E) return B;
function Is_Atomic (Id : E) return B;
@@ -6493,6 +6503,7 @@ package Einfo is
procedure Set_Is_Abstract_Type (Id : E; V : B := True);
procedure Set_Is_Access_Constant (Id : E; V : B := True);
procedure Set_Is_Ada_2005_Only (Id : E; V : B := True);
+ procedure Set_Is_Ada_2012_Only (Id : E; V : B := True);
procedure Set_Is_Aliased (Id : E; V : B := True);
procedure Set_Is_Asynchronous (Id : E; V : B := True);
procedure Set_Is_Atomic (Id : E; V : B := True);
@@ -7152,6 +7163,7 @@ package Einfo is
pragma Inline (Is_Abstract_Type);
pragma Inline (Is_Access_Constant);
pragma Inline (Is_Ada_2005_Only);
+ pragma Inline (Is_Ada_2012_Only);
pragma Inline (Is_Access_Type);
pragma Inline (Is_Access_Protected_Subprogram_Type);
pragma Inline (Is_Access_Subprogram_Type);
@@ -7584,6 +7596,7 @@ package Einfo is
pragma Inline (Set_Is_Abstract_Type);
pragma Inline (Set_Is_Access_Constant);
pragma Inline (Set_Is_Ada_2005_Only);
+ pragma Inline (Set_Is_Ada_2012_Only);
pragma Inline (Set_Is_Aliased);
pragma Inline (Set_Is_Asynchronous);
pragma Inline (Set_Is_Atomic);