From 56c9f04bb7bfff97a61286bcb792e1ed8c66d50f Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Wed, 7 Feb 2007 18:28:20 +0000 Subject: class.c (uncache_this_class_ref): New. 2007-02-07 Andrew Haley * class.c (uncache_this_class_ref): New. * expr.c (build_jni_stub): Initialize the class. (expand_byte_code): Call uncache_this_class_ref after generating code. From-SVN: r121695 --- gcc/java/class.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/java/class.c') diff --git a/gcc/java/class.c b/gcc/java/class.c index ec94a3c..804c239 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1047,6 +1047,15 @@ cache_this_class_ref (tree fndecl) } } +/* Remove the reference to the local variable that holds the current + class$. */ + +void +uncache_this_class_ref (tree fndecl ATTRIBUTE_UNUSED) +{ + this_classdollar = build_classdollar_field (output_class); +} + /* Build a reference to the class TYPE. Also handles primitive types and array types. */ -- cgit v1.1