diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-26 12:35:17 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-26 12:35:17 +0000 |
commit | 62185b76a6c731d28815a4316c63be83eaaa73a3 (patch) | |
tree | 2a58aed56937af5c7e59f935c7834336b72e760d /gcc/ada/opt.ads | |
parent | 6cb5567116064cac9f37c71c20e9e77b728df75f (diff) | |
download | gcc-62185b76a6c731d28815a4316c63be83eaaa73a3.tar.gz |
2010-10-26 Geert Bosch <bosch@adacore.com>
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the subprogram_body
node to determine wether the subprogram is a rewritten parameterized
expression.
2010-10-26 Robert Dewar <dewar@adacore.com>
* opt.ads: Minor code reorganization
Alphabetize Warning switches.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/opt.ads')
-rw-r--r-- | gcc/ada/opt.ads | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gcc/ada/opt.ads b/gcc/ada/opt.ads index a01141704d8..23cbd6c8205 100644 --- a/gcc/ada/opt.ads +++ b/gcc/ada/opt.ads @@ -41,10 +41,10 @@ with Hostparm; use Hostparm; with Types; use Types; +with System.WCh_Con; use System.WCh_Con; + pragma Warnings (Off); --- This package is used also by gnatcoll with System.Strings; use System.Strings; -with System.WCh_Con; use System.WCh_Con; pragma Warnings (On); package Opt is @@ -1360,11 +1360,12 @@ package Opt is -- including warnings on Ada 2012 obsolescent features used in Ada 2012 -- mode. Set False by -gnatwY. - Warn_On_Parameter_Order : Boolean := False; + Warn_On_All_Unread_Out_Parameters : Boolean := False; -- GNAT - -- Set to True to generate warnings for cases where the argument list for - -- a call is a sequence of identifiers that match the formal identifiers, - -- but are in the wrong order. + -- Set to True to generate warnings in all cases where a variable is + -- modified by being passed as to an OUT formal, but the resulting value is + -- never read. The default is that this warning is suppressed, except in + -- the case of Warn_On_Assertion_Failure : Boolean := True; -- GNAT @@ -1421,13 +1422,6 @@ package Opt is -- but only if there is only one out parameter for the procedure involved. -- The default is that this warning is suppressed. - Warn_On_All_Unread_Out_Parameters : Boolean := False; - -- GNAT - -- Set to True to generate warnings in all cases where a variable is - -- modified by being passed as to an OUT formal, but the resulting value is - -- never read. The default is that this warning is suppressed, except in - -- the case of - Warn_On_No_Value_Assigned : Boolean := True; -- GNAT -- Set to True to generate warnings if no value is ever assigned to a @@ -1449,6 +1443,11 @@ package Opt is -- use this to avoid turning it on by default when No_Exception_Propagation -- restriction is set and an exception handler is present. + Warn_On_Object_Renames_Function : Boolean := False; + -- GNAT + -- Set to True to generate warnings when a function result is renamed as + -- an object. The default is that this warning is disabled. + Warn_On_Obsolescent_Feature : Boolean := False; -- GNAT -- Set to True to generate warnings on use of any feature in Annex or if a @@ -1464,16 +1463,17 @@ package Opt is -- Set to True to generate warnings for cases where parentheses are missing -- and the usage is questionable, because the intent is unclear. + Warn_On_Parameter_Order : Boolean := False; + -- GNAT + -- Set to True to generate warnings for cases where the argument list for + -- a call is a sequence of identifiers that match the formal identifiers, + -- but are in the wrong order. + Warn_On_Redundant_Constructs : Boolean := False; -- GNAT -- Set to True to generate warnings for redundant constructs (e.g. useless -- assignments/conversions). The default is that this warning is disabled. - Warn_On_Object_Renames_Function : Boolean := False; - -- GNAT - -- Set to True to generate warnings when a function result is renamed as - -- an object. The default is that this warning is disabled. - Warn_On_Reverse_Bit_Order : Boolean := True; -- GNAT -- Set to True to generate warning (informational) messages for component |