diff options
| author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-04 13:28:50 +0000 |
|---|---|---|
| committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-04 13:28:50 +0000 |
| commit | 8e8a39bd6b9171164b22d87759a5108903c244d5 (patch) | |
| tree | 34519bd156c36555119e260c7cc18ed15232c60a /gcc | |
| parent | e4089178d8ceb97d6b8dee57d1b96eb237617e8d (diff) | |
| download | ppe42-gcc-8e8a39bd6b9171164b22d87759a5108903c244d5.tar.gz ppe42-gcc-8e8a39bd6b9171164b22d87759a5108903c244d5.zip | |
2005-07-04 Ed Schonberg <schonberg@adacore.com>
* par-ch9.adb (P_Task, P_Protected): Indicate that single task and
single protected declarations can have an interface list.
(P_Entry_Declaration): Add handler for Error_Resync, which can be raised
with seriously malformed entry declarations, and lead to compilation
abandoned messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101583 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ada/par-ch9.adb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ada/par-ch9.adb b/gcc/ada/par-ch9.adb index 75c536834d5..57ba12402ba 100644 --- a/gcc/ada/par-ch9.adb +++ b/gcc/ada/par-ch9.adb @@ -56,7 +56,8 @@ package body Ch9 is -- [is [new INTERFACE_LIST with] TASK_DEFINITION]; -- SINGLE_TASK_DECLARATION ::= - -- task DEFINING_IDENTIFIER [is TASK_DEFINITION]; + -- task DEFINING_IDENTIFIER + -- [is [new INTERFACE_LIST with] TASK_DEFINITION]; -- TASK_BODY ::= -- task body DEFINING_IDENTIFIER is @@ -348,7 +349,8 @@ package body Ch9 is -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION; -- SINGLE_PROTECTED_DECLARATION ::= - -- protected DEFINING_IDENTIFIER is PROTECTED_DEFINITION; + -- protected DEFINING_IDENTIFIER + -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION; -- PROTECTED_BODY ::= -- protected body DEFINING_IDENTIFIER is @@ -860,6 +862,11 @@ package body Ch9 is TF_Semicolon; return Decl_Node; + + exception + when Error_Resync => + Resync_Past_Semicolon; + return Error; end P_Entry_Declaration; ----------------------------- |

