diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-18 12:14:52 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-18 12:14:52 +0000 |
commit | 503f7fd32934139e941744aac188fb5f5b9f75ff (patch) | |
tree | bef0d0f79e8fa4b8956e144ca031f29b858f8ed9 /gcc/ada/par-util.adb | |
parent | 8d056442962db9bd1037f3114f2d8e4b8ead2adf (diff) | |
download | gcc-503f7fd32934139e941744aac188fb5f5b9f75ff.tar.gz |
* par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
errout.ads: Update comments. Minor reformatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160979 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/par-util.adb')
-rw-r--r-- | gcc/ada/par-util.adb | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/gcc/ada/par-util.adb b/gcc/ada/par-util.adb index 3672ca8145e..6a0e8efc6cb 100644 --- a/gcc/ada/par-util.adb +++ b/gcc/ada/par-util.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2010, 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- -- @@ -72,7 +72,8 @@ package body Util is and then Name_Len = 7 and then Name_Buffer (1 .. 7) = "program" then - Error_Msg_SC ("PROCEDURE expected"); + Error_Msg_SC -- CODEFIX + ("PROCEDURE expected"); Token := T; return True; @@ -86,8 +87,7 @@ package body Util is M2 (P2 + J - 1) := Fold_Upper (S (J)); end loop; - Error_Msg_SC -- CODEFIX??? - (M2 (1 .. P2 - 1 + S'Last)); + Error_Msg_SC (M2 (1 .. P2 - 1 + S'Last)); Token := T; return True; end if; @@ -334,7 +334,8 @@ package body Util is <<Assume_Comma>> Restore_Scan_State (Scan_State); - Error_Msg_SC ("|"";"" should be "","""); + Error_Msg_SC -- CODEFIX + ("|"";"" should be "","""); Scan; -- past the semicolon return True; @@ -384,26 +385,30 @@ package body Util is begin while Token = T loop if T = Tok_Comma then - Error_Msg_SC ("|extra "","" ignored"); + Error_Msg_SC -- CODEFIX + ("|extra "","" ignored"); elsif T = Tok_Left_Paren then - Error_Msg_SC ("|extra ""("" ignored"); + Error_Msg_SC -- CODEFIX + ("|extra ""("" ignored"); elsif T = Tok_Right_Paren then - Error_Msg_SC ("|extra "")"" ignored"); + Error_Msg_SC -- CODEFIX + ("|extra "")"" ignored"); elsif T = Tok_Semicolon then - Error_Msg_SC ("|extra "";"" ignored"); + Error_Msg_SC -- CODEFIX + ("|extra "";"" ignored"); elsif T = Tok_Colon then - Error_Msg_SC ("|extra "":"" ignored"); + Error_Msg_SC -- CODEFIX + ("|extra "":"" ignored"); else declare Tname : constant String := Token_Type'Image (Token); begin - Error_Msg_SC - ("|extra " & Tname (5 .. Tname'Last) & "ignored"); + Error_Msg_SC ("|extra " & Tname (5 .. Tname'Last) & "ignored"); end; end if; @@ -567,8 +572,7 @@ package body Util is end; Error_Msg_Node_1 := Prev; - Error_Msg_SC - ("unexpected identifier, possibly & was meant here"); + Error_Msg_SC ("unexpected identifier, possibly & was meant here"); Scan; end Merge_Identifier; |