aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@redhat.com>2001-11-07 12:50:00 -0800
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2001-11-07 12:50:00 -0800
commit5573cb39182adccc522b7e1548a4eb43da974c5e (patch)
treeeaf7e3dbd55fa1df20726d061275fc4b59b720df /gcc/java
parent0ac081f6b81bb06d2a6a12349f6b32d503a65716 (diff)
downloadgcc-5573cb39182adccc522b7e1548a4eb43da974c5e.zip
gcc-5573cb39182adccc522b7e1548a4eb43da974c5e.tar.gz
gcc-5573cb39182adccc522b7e1548a4eb43da974c5e.tar.bz2
parse.y (patch_assignment): Removed unused third argument.
2001-11-07 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (patch_assignment): Removed unused third argument. (java_complete_lhs): Removed unused third argument to patch_assignment. ( http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00469.html ) From-SVN: r46834
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/parse.y9
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index ae4fcb0..2af05a1 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-07 Alexandre Petit-Bianco <apbianco@redhat.com>
+
+ * parse.y (patch_assignment): Removed unused third argument.
+ (java_complete_lhs): Removed unused third argument to patch_assignment.
+
2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
* lang.c: Include langhooks-def.h.
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 089d2c3..58a2b30 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -164,7 +164,7 @@ static tree build_new_invocation PARAMS ((tree, tree));
static tree build_assignment PARAMS ((int, int, tree, tree));
static tree build_binop PARAMS ((enum tree_code, int, tree, tree));
static int check_final_assignment PARAMS ((tree ,tree));
-static tree patch_assignment PARAMS ((tree, tree, tree ));
+static tree patch_assignment PARAMS ((tree, tree));
static tree patch_binop PARAMS ((tree, tree, tree));
static tree build_unaryop PARAMS ((int, int, tree));
static tree build_incdec PARAMS ((int, int, tree, int));
@@ -11941,7 +11941,7 @@ java_complete_lhs (node)
/* Prepare node for patch_assignment */
TREE_OPERAND (node, 1) = value;
/* Call patch assignment to verify the assignment */
- if (patch_assignment (node, wfl_op1, value) == error_mark_node)
+ if (patch_assignment (node, wfl_op1) == error_mark_node)
return error_mark_node;
/* Set DECL_INITIAL properly (a conversion might have
been decided by patch_assignment) and return the
@@ -12040,7 +12040,7 @@ java_complete_lhs (node)
/* Can't assign to a (blank) final. */
if (check_final_assignment (TREE_OPERAND (node, 0), wfl_op1))
return error_mark_node;
- node = patch_assignment (node, wfl_op1, wfl_op2);
+ node = patch_assignment (node, wfl_op1);
/* Reorganize the tree if necessary. */
if (flag && (!JREFERENCE_TYPE_P (TREE_TYPE (node))
|| JSTRING_P (TREE_TYPE (node))))
@@ -12790,10 +12790,9 @@ check_final_assignment (lvalue, wfl)
/* 15.25 Assignment operators. */
static tree
-patch_assignment (node, wfl_op1, wfl_op2)
+patch_assignment (node, wfl_op1)
tree node;
tree wfl_op1;
- tree wfl_op2;
{
tree rhs = TREE_OPERAND (node, 1);
tree lvalue = TREE_OPERAND (node, 0), llvalue;