aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/errout.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2013-01-02 10:46:07 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2013-01-02 10:46:07 +0100
commita3633438f36dbcef65df4758dcbc552303ad578d (patch)
tree4d0f6d7aa46aefc5cb77c2d6fa4e0ccdcd2aabc0 /gcc/ada/errout.ads
parent6a04272a9a6981d30d4c21d99f10405c9a48a5c6 (diff)
downloadgcc-a3633438f36dbcef65df4758dcbc552303ad578d.zip
gcc-a3633438f36dbcef65df4758dcbc552303ad578d.tar.gz
gcc-a3633438f36dbcef65df4758dcbc552303ad578d.tar.bz2
[multiple changes]
2013-01-02 Robert Dewar <dewar@adacore.com> * err_vars.ads (Warning_Doc_Switch): New flag. * errout.adb (Error_Msg_Internal): Implement new warning flag doc tag stuff (Set_Msg_Insertion_Warning): New procedure. * errout.ads: Document new insertion sequences ?? ?x? ?.x? * erroutc.adb (Output_Msg_Text): Handle ?? and ?x? warning doc tag stuff. * erroutc.ads (Warning_Msg_Char): New variable. (Warn_Chr): New field in error message object. * errutil.adb (Error_Msg): Set Warn_Chr in error message object. * sem_ch13.adb: Minor reformatting. * warnsw.adb: Add handling for -gnatw.d and -gnatw.D (Warning_Doc_Switch). * warnsw.ads: Add handling of -gnatw.d/.D switches (warning doc tag). 2013-01-02 Robert Dewar <dewar@adacore.com> * opt.ads: Minor reformatting. 2013-01-02 Doug Rupp <rupp@adacore.com> * init.c: Reorganize VMS section. (scan_condtions): New function for scanning condition tables. (__gnat_handle_vms_condtion): Use actual exception name for imported exceptions vice IMPORTED_EXCEPTION. Move condition table scanning into separate function. Move formerly special handled conditions to system condition table. Use SYS$PUTMSG output to fill exception message field for formally special handled condtions, in particular HPARITH to provide more clues about cause and location then raised from the translated image. From-SVN: r194784
Diffstat (limited to 'gcc/ada/errout.ads')
-rw-r--r--gcc/ada/errout.ads24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ada/errout.ads b/gcc/ada/errout.ads
index 0f746d9..7dc67a0 100644
--- a/gcc/ada/errout.ads
+++ b/gcc/ada/errout.ads
@@ -59,6 +59,12 @@ package Errout is
Error_Msg_Exception : exception renames Err_Vars.Error_Msg_Exception;
-- Exception raised if Raise_Exception_On_Error is true
+ Warning_Doc_Switch : Boolean renames Err_Vars.Warning_Doc_Switch;
+ -- If this is set True, then the ??/?x?/?.x? sequences in error messages
+ -- are active (see errout.ads for details). If this switch is False, then
+ -- these sequences are ignored (i.e. simply equivalent to a single ?). The
+ -- -gnatw.d switch sets this flag True, -gnatw.D sets this flag False.
+
-----------------------------------
-- Suppression of Error Messages --
-----------------------------------
@@ -275,6 +281,24 @@ package Errout is
-- messages, and the usual style is to include it, since it makes it
-- clear that the continuation is part of a warning message.
+ -- Insertion character ?? (two question marks)
+ -- Like ?, but if the flag Warn_Doc_Switch is True, adds the string
+ -- "[enabled by default]" at the end of the warning message. In the
+ -- case of continuations, use this in each continuation message.
+
+ -- Insertion character ?x? (warning with switch)
+ -- Like ?, but if the flag Warn_Doc_Switch is True, adds the string
+ -- "[-gnatwx]" at the end of the warning message. x is a lower case
+ -- letter. In the case of continuations, use this on each continuation
+ -- message.
+
+ -- Insertion character ?X? (warning with dot switch)
+ -- Like ?, but if the flag Warn_Doc_Switch is True, adds the string
+ -- "[-gnatw.x]" at the end of the warning message. X is an upper case
+ -- letter corresponding to the lower case letter x in the message. In
+ -- the case of continuations, use this on each continuation
+ -- message.
+
-- Insertion character < (Less Than: conditional warning message)
-- The character < appearing anywhere in a message is used for a
-- conditional error message. If Error_Msg_Warn is True, then the