This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
Re: gcj/271: .java files are not compiled on demand (alt. unclear error)
- To: apbianco at cygnus dot com
- Subject: Re: gcj/271: .java files are not compiled on demand (alt. unclear error)
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: 2 Jul 2000 04:16:00 -0000
- Cc: java-prs at sourceware dot cygnus dot com,
- Reply-To: Alexandre Petit-Bianco <apbianco at cygnus dot com>
The following reply was made to PR gcj/271; it has been noted by GNATS.
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: osk@hem.passagen.se
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/271: .java files are not compiled on demand (alt. unclear error)
Date: Sat, 1 Jul 2000 21:13:04 -0700 (PDT)
osk@hem.passagen.se writes:
> This is caused by the fact that no UncompiledSub.class/.o
> is available. I think that the error message printed should
> indicate that the "unexpected type" is actually
> UncompiledSub.
A bug in the handling of the `instanceof' bytecode. Here's a patch.
./A
2000-07-01 Alexandre Petit-Bianco <apbianco@cygnus.com>
* expr.c (build_instanceof): Layout type after it's loaded.
Index: expr.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/expr.c,v
retrieving revision 1.79
diff -u -p -r1.79 expr.c
--- expr.c 2000/06/29 21:11:13 1.79
+++ expr.c 2000/07/02 04:06:33
@@ -1073,6 +1073,7 @@ build_instanceof (value, type)
if (CLASS_P (type) && ! CLASS_LOADED_P (type))
{
load_class (type, 1);
+ safe_layout_class (type);
if (! TYPE_SIZE (type) || TREE_CODE (TYPE_SIZE (type)) == ERROR_MARK)
return error_mark_node;
}