diff options
author | Robert Dewar <dewar@adacore.com> | 2011-11-21 11:45:44 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-11-21 12:45:44 +0100 |
commit | 51fb9b7396ee1201ea65164507f53c66a5a7d770 (patch) | |
tree | fb9bebfb673ba0712a1a7bf85196eb0f3f51c752 /gcc/ada/frontend.adb | |
parent | 56272abec68769b5638003ec3227a8097a60b321 (diff) | |
download | gcc-51fb9b7396ee1201ea65164507f53c66a5a7d770.zip gcc-51fb9b7396ee1201ea65164507f53c66a5a7d770.tar.gz gcc-51fb9b7396ee1201ea65164507f53c66a5a7d770.tar.bz2 |
frontend.adb (Frontend): Capture restrictions from config files
2011-11-21 Robert Dewar <dewar@adacore.com>
* frontend.adb (Frontend): Capture restrictions from config files
* lib-load.adb (Load_Unit): Save/set/restore restriction pragma
information
* lib-xref.adb (Generate_Reference): Fix handling of obsolescent
references. This was noticed during debugging, but it is not
known if it causes real bugs.
* restrict.ads, restrict.adb: New routines to save/set/restore
non-partition-wide restrictions.
* s-rident.ads: Comment changes for new handling of
No_Elaboration_Code
* sem.adb (Sem): Save/Set/Restore non-partition-wide restrictions
* sem_ch10.adb (Analyze_Compilation_Unit): Remove incomplete
attempt to save/restore non-partition-wide restrictions (now
this work is all done in Sem).
* sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
Special handling for restriction No_Elaboration_Code.
2011-11-21 Robert Dewar <dewar@adacore.com>
* gnat_ugn.texi: Document new handling of restrictions pragmas.
From-SVN: r181566
Diffstat (limited to 'gcc/ada/frontend.adb')
-rw-r--r-- | gcc/ada/frontend.adb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/frontend.adb b/gcc/ada/frontend.adb index 2dad57a..35e7d9e7 100644 --- a/gcc/ada/frontend.adb +++ b/gcc/ada/frontend.adb @@ -226,6 +226,12 @@ begin Opt.Suppress_Options := Scope_Suppress; end; + -- This is where we can capture the value of the compilation unit specific + -- restrictions that have been set by the config pragma files (or from + -- Targparm), for later restoration when processing e.g. subunits. + + Save_Config_Cunit_Boolean_Restrictions; + -- If there was a -gnatem switch, initialize the mappings of unit names to -- file names and of file names to path names from the mapping file. |