This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Java: fix to the PR #172.
- To: egcs-patches at egcs dot cygnus dot com
- Subject: [PATCH] Java: fix to the PR #172.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Wed, 15 Mar 2000 01:29:13 -0800
- Reply-to: apbianco at redhat dot com
I'm checking in this patch to fix the gcj PR #172:
http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00169.html
./A
Tue Mar 14 17:15:41 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (register_incomplete_type): Fixed initialization of
JDEP_ENCLOSING.
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.144
diff -u -p -r1.144 parse.y
--- parse.y 2000/03/14 07:51:42 1.144
+++ parse.y 2000/03/15 09:27:40
@@ -4883,7 +4883,8 @@ register_incomplete_type (kind, wfl, dec
JDEP_WFL (new) = wfl;
JDEP_CHAIN (new) = NULL;
JDEP_MISC (new) = NULL_TREE;
- JDEP_ENCLOSING (new) = GET_CPC ();
+ if(!(JDEP_ENCLOSING (new) = GET_ENCLOSING_CPC_CONTEXT ()))
+ JDEP_ENCLOSING (new) = GET_CPC ();
JDEP_GET_PATCH (new) = (tree *)NULL;
JDEP_INSERT (ctxp->classd_list, new);