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-ch10.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-ch10.adb')
-rw-r--r-- | gcc/ada/par-ch10.adb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/ada/par-ch10.adb b/gcc/ada/par-ch10.adb index 8fad13e..0a31616 100644 --- a/gcc/ada/par-ch10.adb +++ b/gcc/ada/par-ch10.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- -- @@ -150,7 +150,7 @@ package body Ch10 is Item := P_Pragma; if Item = Error - or else Chars (Item) /= Name_Source_Reference + or else Pragma_Name (Item) /= Name_Source_Reference then Restore_Scan_State (Scan_State); @@ -180,7 +180,8 @@ package body Ch10 is Item := P_Pragma; if Item = Error - or else not Is_Configuration_Pragma_Name (Chars (Item)) + or else not + Is_Configuration_Pragma_Name (Pragma_Name (Item)) then Restore_Scan_State (Scan_State); exit; @@ -1024,10 +1025,7 @@ package body Ch10 is Set_Name (Subunit_Node, P_Qualified_Simple_Name); U_Right_Paren; - if Token = Tok_Semicolon then - Error_Msg_SC ("unexpected semicolon ignored"); - Scan; - end if; + Ignore (Tok_Semicolon); if Token = Tok_Function or else Token = Tok_Procedure then Body_Node := P_Subprogram (Pf_Pbod); |