aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-01-29 22:40:07 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2000-01-29 14:40:07 -0800
commitf8989a66b88d9b4fa6cad40e5266a29696655764 (patch)
treeb89a58f820f86bae4757bbef8cd5acd0505d0889 /gcc/java/parse.y
parent114356ad7c0d15bfc2e5687e3fe530b7ebd54a50 (diff)
downloadgcc-f8989a66b88d9b4fa6cad40e5266a29696655764.zip
gcc-f8989a66b88d9b4fa6cad40e5266a29696655764.tar.gz
gcc-f8989a66b88d9b4fa6cad40e5266a29696655764.tar.bz2
[multiple changes]
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. From-SVN: r31695
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 c3fc4a0..3ba506f 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;
}
;