This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Java: cleanup patch.
- To: egcs-patches at egcs dot cygnus dot com
- Subject: [PATCH] Java: cleanup patch.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 28 Mar 2000 14:35:19 -0800
- Reply-to: apbianco at redhat dot com
The changes I checked in yesterday
(http://gcc.gnu.org/ml/gcc-patches/2000-03/msg00937.html) were
partially bogus -- my bad, sorry. The following checked in clean-up
patch fixes them.
./A
2000-03-28 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse-scan.y (pop_class_context): Reset `inner_qualifier_length'
when negative *before* using it as an array index.
* ChangeLog: Fixed typo.
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/ChangeLog,v
retrieving revision 1.397
diff -u -p -r1.397 ChangeLog
--- ChangeLog 2000/03/28 08:33:45 1.397
+++ ChangeLog 2000/03/28 22:22:59
@@ -6,7 +6,7 @@
2000-03-27 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-parse.c (get_constant): Properly cast `num' during the
- invocation of `add_double call'.
+ invocation of `add_double'.
* jcf-write.c (push_long_const): Properly cast `lo' before
comparing it to short bounds.
* parse-scan.y (interface_declaration:): Rule re-arrange so that
Index: parse-scan.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse-scan.y,v
retrieving revision 1.16
diff -u -p -r1.16 parse-scan.y
--- parse-scan.y 2000/03/28 08:33:45 1.16
+++ parse-scan.y 2000/03/28 22:23:01
@@ -1144,9 +1144,9 @@ pop_class_context ()
&& inner_qualifier [inner_qualifier_length-1] != '$')
;
inner_qualifier = xrealloc (inner_qualifier, inner_qualifier_length+1);
- inner_qualifier [inner_qualifier_length] = '\0';
if (inner_qualifier_length == -1)
inner_qualifier_length = 0;
+ inner_qualifier [inner_qualifier_length] = '\0';
}
/* Actions defined here */