diff options
| author | Robert Dewar <dewar@adacore.com> | 2008-03-26 08:37:49 +0100 |
|---|---|---|
| committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-03-26 08:37:49 +0100 |
| commit | 3b8d33ef1d3979b83e0085ab8a87b06b48399441 (patch) | |
| tree | 9d1f0e5b1c9f80ad8a1def0a2041c72ffa1a6555 /gcc/ada/par.adb | |
| parent | 14f1ec15bd8860dee913a2207f598baddf13ae94 (diff) | |
| download | gcc-3b8d33ef1d3979b83e0085ab8a87b06b48399441.zip gcc-3b8d33ef1d3979b83e0085ab8a87b06b48399441.tar.gz gcc-3b8d33ef1d3979b83e0085ab8a87b06b48399441.tar.bz2 | |
par.adb (Check_No_Right_Paren): Removed no longer used
2008-03-26 Robert Dewar <dewar@adacore.com>
* par.adb (Check_No_Right_Paren): Removed no longer used
* par-ch10.adb (N_Pragma): Chars field removed, use Chars
(Pragma_Identifier (.. instead.
* par-ch10.adb (P_Subunit): Improvement in error recovery and message
* par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
par-ch4.adb: Minor improvements in error recovery and messages.
* erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
non-serious
* par-ch9.adb: Minor improvements in error recovery and messages
(P_Protected): Better error recovery for "protected type x;"
* par-util.adb: Minor improvements in error recovery and messages
(Check_No_Right_Paren): Removed no longer used
From-SVN: r133557
Diffstat (limited to 'gcc/ada/par.adb')
| -rw-r--r-- | gcc/ada/par.adb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/ada/par.adb b/gcc/ada/par.adb index e750510..016d502 100644 --- a/gcc/ada/par.adb +++ b/gcc/ada/par.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- 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- -- @@ -1050,10 +1050,6 @@ is -- it is returned unchanged. Otherwise an error message is issued -- and Error is returned. - procedure Check_No_Right_Paren; - -- Called to check that the current token is not a right paren. If it - -- is, then an error is given, and the right parenthesis is scanned out. - function Comma_Present return Boolean; -- Used in comma delimited lists to determine if a comma is present, or -- can reasonably be assumed to have been present (an error message is @@ -1256,10 +1252,10 @@ begin -- Give error if bad pragma - if not Is_Configuration_Pragma_Name (Chars (P_Node)) - and then Chars (P_Node) /= Name_Source_Reference + if not Is_Configuration_Pragma_Name (Pragma_Name (P_Node)) + and then Pragma_Name (P_Node) /= Name_Source_Reference then - if Is_Pragma_Name (Chars (P_Node)) then + if Is_Pragma_Name (Pragma_Name (P_Node)) then Error_Msg_N ("only configuration pragmas allowed " & "in configuration file", P_Node); |
