diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-31 12:32:10 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-31 12:32:10 +0000 |
commit | a653c8e26e88e9e1a8a4f6a2bc6f0778e938d08f (patch) | |
tree | 665c72f50c2ecaffd57b68f62703febe25766cca /gcc/ada/lib.adb | |
parent | 05987af32749a4cbd6507adbe13428be99f1b6a6 (diff) | |
download | gcc-a653c8e26e88e9e1a8a4f6a2bc6f0778e938d08f.tar.gz |
2014-07-31 Vincent Celier <celier@adacore.com>
* projects.texi: Minor spelling error fix.
2014-07-31 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi: Document No_Elaboration_Code_All restriction.
* lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
information.
* lib.ads, lib.adb (No_Elab_Code): New field in unit information.
* restrict.adb (Process_Restriction_Synonyms): Add handling
of No_Elaboration_Code_All.
* restrict.ads (Process_Restriction_Synonyms): Now handles
No_Elaboration_Code_All.
* sem_ch10.adb (Analyze_Context): Enforce transitive with for
No_Elaboration_Code_All.
* sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
Handle setting of No_Elab_Code in unit information. Handle
No_Elaboration_Code_All.
* snames.ads-tmpl (Name_No_Elaboration_Code): New name for
pragma processing.
(Name_No_Elaboration_Code_All): New name for pragma processing.
2014-07-31 Eric Botcazou <ebotcazou@adacore.com>
* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
types with a null range and use the Esize of the component
instead of its RM_Size to identify appropriate values.
2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
* freeze.adb Add with and use clause for Aspects.
(Freeze_Expression): Emit an error when a volatile constant lacks
Boolean aspect Import.
(Has_Boolean_Aspect_Import): New routine.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213347 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/lib.adb')
-rw-r--r-- | gcc/ada/lib.adb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ada/lib.adb b/gcc/ada/lib.adb index 53b611d983a..b2f9c36e40e 100644 --- a/gcc/ada/lib.adb +++ b/gcc/ada/lib.adb @@ -146,6 +146,11 @@ package body Lib is return Units.Table (U).Munit_Index; end Munit_Index; + function No_Elab_Code (U : Unit_Number_Type) return No_Elab_Code_T is + begin + return Units.Table (U).No_Elab_Code; + end No_Elab_Code; + function OA_Setting (U : Unit_Number_Type) return Character is begin return Units.Table (U).OA_Setting; @@ -226,6 +231,11 @@ package body Lib is Units.Table (U).Main_Priority := P; end Set_Main_Priority; + procedure Set_No_Elab_Code (U : Unit_Number_Type; N : No_Elab_Code_T) is + begin + Units.Table (U).No_Elab_Code := N; + end Set_No_Elab_Code; + procedure Set_OA_Setting (U : Unit_Number_Type; C : Character) is begin Units.Table (U).OA_Setting := C; |