diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-10-07 11:12:36 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-10-07 11:12:36 +0200 |
commit | 599a741170b384ab63f23b9761f5456932001f64 (patch) | |
tree | 1c6828774f1440e62389af41a529b13b12382b3a /gcc/ada/opt.ads | |
parent | 0eb4c1a7cc05913b39bb6239e20a73b964e4ae95 (diff) | |
download | gcc-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/opt.ads')
-rw-r--r-- | gcc/ada/opt.ads | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads index 59658c6..eae72e0 100644 --- a/gcc/ada/opt.ads +++ b/gcc/ada/opt.ads @@ -1332,6 +1332,12 @@ package Opt is -- including warnings on Ada 2005 obsolescent features used in Ada 2005 -- mode. Set False by -gnatwY. + Warn_On_Ada_2012_Compatibility : Boolean := True; + -- GNAT + -- Set to True to generate all warnings on Ada 2012 compatibility issues, + -- including warnings on Ada 2012 obsolescent features used in Ada 2012 + -- mode. Set False by -gnatwY. + Warn_On_Parameter_Order : Boolean := False; -- GNAT -- Set to True to generate warnings for cases where the argument list for |