summaryrefslogtreecommitdiff
path: root/gcc/ada/gnat_ugn.texi
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-13 08:22:58 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-13 08:22:58 +0000
commit91a6416d693639c33d0b59006a77f8cd81949337 (patch)
tree6ba7965e93594699a25747d19e3ca6434f714fe5 /gcc/ada/gnat_ugn.texi
parent20bb8e853e19b84b6353cbc205ef730dc9b87a3d (diff)
downloadgcc-91a6416d693639c33d0b59006a77f8cd81949337.tar.gz
2009-07-13 Robert Dewar <dewar@adacore.com>
* freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value * gnat_ugn.texi: Add documentation for -gnatw.m/.M * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset Warn_On_Suspicious_Modulus_Value. * ug_words: Add entries for -gnatw.m/-gnatw.M. * usage.adb: Add lines for -gnatw.m/.M switches. * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M 2009-07-13 Javier Miranda <miranda@adacore.com> * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before reading the Is_Interface attribute of the dispatching type. 2009-07-13 Robert Dewar <dewar@adacore.com> * a-convec.adb: Minor code reorganization (use conditional expressions) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149550 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gnat_ugn.texi')
-rw-r--r--gcc/ada/gnat_ugn.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi
index b7e4bcf16f3..35aab900e2e 100644
--- a/gcc/ada/gnat_ugn.texi
+++ b/gcc/ada/gnat_ugn.texi
@@ -5347,6 +5347,20 @@ The default is that these warnings are not given.
This switch disables warnings for variables that are assigned or
initialized, but never read.
+@item -gnatw.m
+@emph{Activate warnings on suspicious modulus values.}
+@cindex @option{-gnatw.m} (@command{gcc})
+This switch activates warnings for modulus values that seem suspicious.
+The cases caught are where the size is the same as the modulus (e.g.
+a modulus of 7 with a size of 7 bits), and modulus values of 32 or 64
+with no size clause. The guess in both cases is that 2**x was intended
+rather than x. The default is that these warnings are given.
+
+@item -gnatw.M
+@emph{Disable warnings on suspicious modulus values.}
+@cindex @option{-gnatw.M} (@command{gcc})
+This switch disables warnings for suspicious modulus values.
+
@item -gnatwn
@emph{Set normal warnings mode.}
@cindex @option{-gnatwn} (@command{gcc})