summaryrefslogtreecommitdiff
path: root/gcc/ada/erroutc.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-05 07:52:55 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-05 07:52:55 +0000
commitad018b0cbec171fc39a144fb42471d2d99c64ffb (patch)
treea2e43c3e03fc087f1f1ac33952d8eb14bc5d2009 /gcc/ada/erroutc.adb
parentde506f1b9507659678aca32f798edbfe72894bde (diff)
downloadgcc-ad018b0cbec171fc39a144fb42471d2d99c64ffb.tar.gz
2005-09-01 Robert Dewar <dewar@adacore.com>
* errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet spec. Implement new insertion char < (conditional warning) * errutil.adb, erroutc.adb: Implement new insertion char < (conditional warning). * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads (Error_Msg_Warn): New variable for < insertion char. * prj-nmsc.adb: Implement new errout insertion char < (conditional warning). (Check_For_Source): Change value of Source_Id only after the current source has been dealt with. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103859 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/erroutc.adb')
-rw-r--r--gcc/ada/erroutc.adb8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/erroutc.adb b/gcc/ada/erroutc.adb
index ed4d4aa7c3b..2a962964eb9 100644
--- a/gcc/ada/erroutc.adb
+++ b/gcc/ada/erroutc.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2004 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2005 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- --
@@ -40,7 +40,6 @@ with Sinput; use Sinput;
with Snames; use Snames;
with Targparm; use Targparm;
with Table;
-with Types; use Types;
with Uintp; use Uintp;
package body Erroutc is
@@ -983,6 +982,11 @@ package body Erroutc is
then
Is_Warning_Msg := True;
+ elsif Msg (J) = '<'
+ and then (J = Msg'First or else Msg (J - 1) /= ''')
+ then
+ Is_Warning_Msg := Error_Msg_Warn;
+
elsif Msg (J) = '|'
and then (J = Msg'First or else Msg (J - 1) /= ''')
then