diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:52:55 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:52:55 +0000 |
commit | ad018b0cbec171fc39a144fb42471d2d99c64ffb (patch) | |
tree | a2e43c3e03fc087f1f1ac33952d8eb14bc5d2009 /gcc/ada/erroutc.adb | |
parent | de506f1b9507659678aca32f798edbfe72894bde (diff) | |
download | gcc-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.adb | 8 |
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 |