Commit 25e8b6ce by Tom Tromey Committed by Tom Tromey

re PR java/36247 (Segfault with -findirect-dispatch and --jni)

	PR java/36247:
	* class.c (build_class_ref): Initialize this_classdollar when

From-SVN: r136787
parent 397fda80
2008-06-14 Tom Tromey <tromey@redhat.com>
PR java/36247:
* class.c (build_class_ref): Initialize this_classdollar when
needed.
2008-05-23 Andrew Haley <aph@redhat.com>
* jcf-parse.c (give_name_to_class): Call find_sourcefile to find full
......
......@@ -1142,7 +1142,13 @@ build_class_ref (tree type)
return build_indirect_class_ref (type);
if (type == output_class && flag_indirect_classes)
return this_classdollar;
{
/* This can be NULL if we see a JNI stub before we see any
other method. */
if (! this_classdollar)
this_classdollar = build_classdollar_field (output_class);
return this_classdollar;
}
if (TREE_CODE (type) == RECORD_TYPE)
return build_static_class_ref (type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment