aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/typeck.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 8cb9376..d0e0e92 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * typeck.c (find_method_in_interfaces): Move variable
+ definition up.
+
2004-01-16 Andrew Haley <aph@redhat.com>
PR java/13273:
diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c
index dc8a8c5..8b65f43 100644
--- a/gcc/java/typeck.c
+++ b/gcc/java/typeck.c
@@ -797,6 +797,7 @@ find_method_in_interfaces (tree searched_class, int flags, tree method_name,
tree child =
TREE_VEC_ELT (TYPE_BINFO_BASETYPES (searched_class), i);
tree iclass = BINFO_TYPE (child);
+ tree method;
/* If the superinterface hasn't been loaded yet, do so now. */
if (CLASS_FROM_SOURCE_P (iclass))
@@ -806,7 +807,7 @@ find_method_in_interfaces (tree searched_class, int flags, tree method_name,
/* First, we look in ICLASS. If that doesn't work we'll
recursively look through all its superinterfaces. */
- tree method = shallow_find_method (iclass, flags, method_name,
+ method = shallow_find_method (iclass, flags, method_name,
signature, signature_builder);
if (method != NULL_TREE)
return method;