aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/errout.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2008-04-08 08:49:13 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-04-08 08:49:13 +0200
commit2dcf2584dbcefb4c3148a2c4ec776598d2004c1c (patch)
tree0bd146c5189863d5579772c6bbaeeca6003fc44b /gcc/ada/errout.ads
parent68c3f02a687ec4e6dd51392f1154da5690cd7963 (diff)
downloadgcc-2dcf2584dbcefb4c3148a2c4ec776598d2004c1c.zip
gcc-2dcf2584dbcefb4c3148a2c4ec776598d2004c1c.tar.gz
gcc-2dcf2584dbcefb4c3148a2c4ec776598d2004c1c.tar.bz2
errout.ads: Update comments for new handling of info: messages
2008-04-08 Robert Dewar <dewar@adacore.com> * errout.ads: Update comments for new handling of info: messages * erroutc.adb (Matches): New procedure (Warning_Specifically_Suppressed): Modified to handle multiple * chars (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for info messages as well as style messages. * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed subprograms. (Check_A_Call): Special "info: " warnings now have ? in the text (Elab_Warning): Use info message in static case From-SVN: r134024
Diffstat (limited to 'gcc/ada/errout.ads')
-rw-r--r--gcc/ada/errout.ads25
1 files changed, 16 insertions, 9 deletions
diff --git a/gcc/ada/errout.ads b/gcc/ada/errout.ads
index b9b0616..83b5095 100644
--- a/gcc/ada/errout.ads
+++ b/gcc/ada/errout.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2008, 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- --
@@ -275,14 +275,21 @@ package Errout is
-- Insertion character ? (Question: warning message)
-- The character ? appearing anywhere in a message makes the message
-- warning instead of a normal error message, and the text of the
- -- message will be preceded by "Warning:" instead of "Error:" in the
- -- normal case. The handling of warnings if further controlled by the
- -- Warning_Mode option (-w switch), see package Opt for further
- -- details, and also by the current setting from pragma Warnings. This
- -- pragma applies only to warnings issued from the semantic phase (not
- -- the parser), but currently all relevant warnings are posted by the
- -- semantic phase anyway. Messages starting with (style) are also
- -- treated as warning messages.
+ -- message will be preceded by "warning:" in the normal case. The
+ -- handling of warnings if further controlled by the Warning_Mode
+ -- option (-w switch), see package Opt for further details, and also by
+ -- the current setting from pragma Warnings. This pragma applies only
+ -- to warnings issued from the semantic phase (not the parser), but
+ -- currently all relevant warnings are posted by the semantic phase
+ -- anyway. Messages starting with (style) are also treated as warning
+ -- messages.
+ --
+ -- Note: when a warning message is output, the text of the message is
+ -- preceded by "warning: " in the normal case. An exception to this
+ -- rule occurs when the text of the message starts with "info: " in
+ -- which case this string is not prepended. This allows callers to
+ -- label certain warnings as informational messages, rather than as
+ -- warning messages requiring some action.
--
-- Note: the presence of ? is ignored in continuation messages (i.e.
-- messages starting with the \ insertion character). The warning