This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: PR 7073 patch
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 01 Jul 2002 21:04:17 -0600
- Subject: Patch: FYI: PR 7073 patch
- Reply-to: tromey at redhat dot com
I'm checking this in now.
This fixes the remaining part of PR 7073.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
For PR libgcj/7073:
* parse.y (patch_incomplete_class_ref): Handle VOID_TYPE
specially.
Index: parse.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v
retrieving revision 1.387
diff -u -r1.387 parse.y
--- parse.y 13 Jun 2002 16:46:01 -0000 1.387
+++ parse.y 19 Jun 2002 00:52:02 -0000
@@ -14029,7 +14029,8 @@
if (!(ref_type = resolve_type_during_patch (type)))
return error_mark_node;
- if (!flag_emit_class_files || JPRIMITIVE_TYPE_P (ref_type))
+ if (!flag_emit_class_files || JPRIMITIVE_TYPE_P (ref_type)
+ || TREE_CODE (ref_type) == VOID_TYPE)
{
tree dot = build_class_ref (ref_type);
/* A class referenced by `foo.class' is initialized. */