summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-25 16:36:07 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-25 16:36:07 +0000
commit3db67de5deb978effccab7b8bd4feecc0b930c2d (patch)
tree1eaea5b879e97570da44a93cc9082fdfe30f2559
parent54d6776232876bfc0014f67f197aa6e1d27cf1ce (diff)
downloadgcc-3db67de5deb978effccab7b8bd4feecc0b930c2d.tar.gz
Tue May 25 15:06:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (patch_assignment): Save the rhs before using it as an argument to _Jv_CheckArrayStore. Tue May 25 11:23:59 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * lex.c (java_parse_doc_section): Fixed `tag' buffer size. Mon May 24 13:26:00 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * lex.c (java_lex): Accepts `+' or `-' after the beginning of a floating point litteral only when the exponent indicator has been parsed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27147 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/java/ChangeLog15
-rw-r--r--gcc/java/lex.c4
-rw-r--r--gcc/java/parse.c1
-rw-r--r--gcc/java/parse.y1
4 files changed, 19 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index a96423df7be..ed91c91f210 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,18 @@
+Tue May 25 15:06:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * parse.y (patch_assignment): Save the rhs before using it as an
+ argument to _Jv_CheckArrayStore.
+
+Tue May 25 11:23:59 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * lex.c (java_parse_doc_section): Fixed `tag' buffer size.
+
+Mon May 24 13:26:00 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * lex.c (java_lex): Accepts `+' or `-' after the beginning of a
+ floating point litteral only when the exponent indicator has been
+ parsed.
+
Sat May 22 13:54:41 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (formal_parameter:): Construct argument tree list
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 18d873fb135..fbaa23d80f0 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -427,7 +427,7 @@ java_parse_doc_section (c)
/* We're parsing @deprecated */
if (valid_tag && (c == '@'))
{
- char tag [10];
+ char tag [11];
int tag_index = 0;
while (tag_index < 10 && c != UEOF && c != ' ' && c != '\n')
@@ -741,7 +741,7 @@ java_lex (java_lval)
stage = 4; /* So we fall through */
}
- if ((c=='-' || c =='+') && stage < 3)
+ if ((c=='-' || c =='+') && stage == 2)
{
stage = 3;
literal_token [literal_index++] = c;
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index 9fa65e8acf8..478428552d8 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -11432,6 +11432,7 @@ patch_assignment (node, wfl_op1, wfl_op2)
}
/* Build the invocation of _Jv_CheckArrayStore */
+ new_rhs = save_expr (new_rhs);
check = build (CALL_EXPR, void_type_node,
build_address_of (soft_checkarraystore_node),
tree_cons (NULL_TREE, base,
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index 5357003609e..69918a9c1c3 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -8847,6 +8847,7 @@ patch_assignment (node, wfl_op1, wfl_op2)
}
/* Build the invocation of _Jv_CheckArrayStore */
+ new_rhs = save_expr (new_rhs);
check = build (CALL_EXPR, void_type_node,
build_address_of (soft_checkarraystore_node),
tree_cons (NULL_TREE, base,