summaryrefslogtreecommitdiffstats
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-29 22:40:07 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-29 22:40:07 +0000
commit180de4158c25dd9e3dbf481db18b33a10842a187 (patch)
treeb89a58f820f86bae4757bbef8cd5acd0505d0889 /gcc/java/parse.y
parent60d75c7ce03cb82a24b69662d6df6cd59b3d62ff (diff)
downloadppe42-gcc-180de4158c25dd9e3dbf481db18b33a10842a187.tar.gz
ppe42-gcc-180de4158c25dd9e3dbf481db18b33a10842a187.zip
2000-01-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (formal_parameter:): Set `$$' to NULL_TREE for better error handling/recovery. * java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment. Wed Jan 12 20:20:11 2000 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-write.c (generate_bytecode_insns): binop: Change the type of the shift value to int. Fixed typo in comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31695 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index c3fc4a03d2c..3ba506f616f 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -971,10 +971,14 @@ formal_parameter:
$$ = build_tree_list ($3, $2);
}
| type error
- {yyerror ("Missing identifier"); RECOVER;}
+ {
+ yyerror ("Missing identifier"); RECOVER;
+ $$ = NULL_TREE;
+ }
| final type error
{
yyerror ("Missing identifier"); RECOVER;
+ $$ = NULL_TREE;
}
;
OpenPOWER on IntegriCloud