aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/opt.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-10-30 12:57:55 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2009-10-30 12:57:55 +0100
commit110fcc77755c84bbc3d6472928da4bdf7a330238 (patch)
tree63033fd7f2b79007a6e8b8b4047e0792396cc72a /gcc/ada/opt.ads
parent953a18fb42491340b946980207cd0453ca94231f (diff)
downloadgcc-110fcc77755c84bbc3d6472928da4bdf7a330238.zip
gcc-110fcc77755c84bbc3d6472928da4bdf7a330238.tar.gz
gcc-110fcc77755c84bbc3d6472928da4bdf7a330238.tar.bz2
[multiple changes]
2009-10-30 Bob Duff <duff@adacore.com> * s-fileio.adb (Errno_Message): Suppress VMS-specific warning. 2009-10-30 Ed Schonberg <schonberg@adacore.com> * sem_case.adb (Check_Choices): Add explanatory message when there are missing alternatives when the required range of alternatives is given by the base type of the case expression or discriminant in a variant part. * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially dangerous overlap between actuals in a call, activated by -gnatw.i * sem_warn.adb (Set_Dot_Warning_Switch): set flag. (Warn_On_Overlapping_Actuals): use new flag. * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals 2009-10-30 Robert Dewar <dewar@adacore.com> * exp_aggr.adb, exp_ch9.adb: Minor reformatting From-SVN: r153740
Diffstat (limited to 'gcc/ada/opt.ads')
-rw-r--r--gcc/ada/opt.ads5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads
index d184da9..a71c823 100644
--- a/gcc/ada/opt.ads
+++ b/gcc/ada/opt.ads
@@ -1361,6 +1361,11 @@ package Opt is
-- Set to True to generate warnings on use of any feature in Annex or if a
-- subprogram is called for which a pragma Obsolescent applies.
+ Warn_On_Overlap : Boolean := False;
+ -- GNAT
+ -- Set to True to generate warnings when a writable actual which is not
+ -- a by-copy type overlaps with another actual in a subprogram call.
+
Warn_On_Questionable_Missing_Parens : Boolean := True;
-- GNAT
-- Set to True to generate warnings for cases where parentheses are missing