From 41c0403d88a5418a13913179453f9cb89b15ef7e Mon Sep 17 00:00:00 2001 From: charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Tue, 31 Oct 2006 18:14:24 +0000 Subject: 2006-10-31 Robert Dewar <dewar@adacore.com> Cyrille Comar <comar@adacore.com> Ben Brosgol <brosgol@adacore.com> * debug.adb: Update flags documentation * gnat_ugn.texi: Add documentation for new -gnatwq switch Clean up documentation for several other warning switches Clarify how task stack size can be specified with various versions of Windows. Add note that -gnatVo includes ranges including loops Add documentation for -gnatL switch Add note on elaboration warning for initializing variables Add documentation for new -gnatwt warning switch Document new form of pragma Warnings (On|Off, string) Add comment on use of pragma Warnings to control warnings Add documentation for -gnatjnn switch Modify section on interfacing with C for VMS 64-bit. Add doc for -gnatVe/E Add documentation of new warning flags -gnatww/-gnatwW Add warnings about address clause overlays to list of warnings (Exception Handling Control): Document that the option --RTS must be used consistently for gcc and gnatbind. Clarify that inlining is not always possible Update documentation on pragma Unchecked_Union. * gnat_rm.texi: Add documentation for new extended version of pragma Obsolescent Add documentation for implementation defined attribute 'Stub_Type. Add note on use of Volatile in asm statements Add documentation on use of pragma Unreferenced in context clause Document new form of pragma Warnings (On|Off, pattern) Document pragma Wide_Character_Encoding Add note that pragma Restrictions (No_Elaboration_Code) is only fully enforced if code generation is active. Add section on pragma Suppress to document GNAT specific check Alignment_Check Clarify difference between No_Dispatching_Calls & No_Dispatch. Add documentation for pragma Restrictions (No_Elaboration_Code) * gnat-style.texi: Add comments on layout of subprogram local variables in the presence of nested subprograms. * ug_words: Resync. * elists.ads: Minor reformatting Node returns Node_Or_Entity_Id (doc change only) * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION * g-arrspl.ads (Create): Update comments. * sem.ads: Add details on the handling of the scope stack. * usage.adb: Update documentation. * validsw.ads, validsw.adb: Add definition of Validity_Check_Components and implement -gnatVe/E * vms_data.ads: Add missing VMS qualifiers. * s-addope.ads: Add documentation on overflow and divide by zero git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118328 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/validsw.ads | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/ada/validsw.ads') diff --git a/gcc/ada/validsw.ads b/gcc/ada/validsw.ads index a2d0a189b38..1038b366a6d 100644 --- a/gcc/ada/validsw.ads +++ b/gcc/ada/validsw.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2001-2005, Free Software Foundation, Inc. -- +-- Copyright (C) 2001-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -47,6 +47,12 @@ package Validsw is -- pragma, then the right side of assignments and also initializing -- expressions in object declarations are checked for validity. + Validity_Check_Components : Boolean := False; + -- Controls validity checking for assignment to elementary components of + -- records. If this switch is set true using -gnatVe, or an 'e' in the + -- argument of Validity_Checks pragma, then the right hand of an assignment + -- to such a component is checked for validity. + Validity_Check_Default : Boolean := True; -- Controls default (reference manual) validity checking. If this switch is -- set to True using -gnatVd or a 'd' in the argument of a Validity_ Checks -- cgit v1.2.1