aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2004-01-16 17:11:08 +0000
committerAndrew Haley <aph@gcc.gnu.org>2004-01-16 17:11:08 +0000
commite081a9c4c7807286757f2e8054f79cedcb67d5b2 (patch)
tree8ba436e6c9894a273df64bd748665bd74dfab8b7 /gcc/java/decl.c
parentab8ffc795c01db35bc620c7f22a2c5236ba958c2 (diff)
downloadgcc-e081a9c4c7807286757f2e8054f79cedcb67d5b2.zip
gcc-e081a9c4c7807286757f2e8054f79cedcb67d5b2.tar.gz
gcc-e081a9c4c7807286757f2e8054f79cedcb67d5b2.tar.bz2
re PR java/13273 (gcj generates call to abstract method)
2004-01-16 Andrew Haley <aph@redhat.com> PR java/13273: * typeck.c (shallow_find_method): New. (find_method_in_superclasses): New. (find_method_in_interfaces): New. (lookup_do): Rewrite. * java-tree.h (SEARCH_ONLY_INTERFACE): Delete. * jcf-parse.c (read_class): Save and restore output_class. * decl.c (java_expand_body): Set output_class from fndecl. From-SVN: r75980
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 1ce2ad3..ab8c2ae 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -1820,8 +1820,7 @@ java_expand_body (tree fndecl)
current_function_decl = fndecl;
input_location = DECL_SOURCE_LOCATION (fndecl);
- output_class = DECL_CONTEXT (current_function_decl);
- current_class = DECL_CONTEXT (fndecl);
+ output_class = current_class = DECL_CONTEXT (fndecl);
timevar_push (TV_EXPAND);