aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>1999-07-01 06:03:28 +0000
committerAndrew Haley <aph@gcc.gnu.org>1999-07-01 06:03:28 +0000
commitac8f5d48cba9387f8ccb22bb91786805a213bf5a (patch)
treef0056ec9bc77c60aecc81347ace42b571b4b767c /gcc/java/class.c
parentcb805c2ddff216a64ea3a57e03d3a30b76c06c89 (diff)
downloadgcc-ac8f5d48cba9387f8ccb22bb91786805a213bf5a.zip
gcc-ac8f5d48cba9387f8ccb22bb91786805a213bf5a.tar.gz
gcc-ac8f5d48cba9387f8ccb22bb91786805a213bf5a.tar.bz2
class.c (finish_class): Whenever a deferred method is output...
1999-06-24 Andrew Haley <aph@cygnus.com> * class.c (finish_class): Whenever a deferred method is output, rescan the list of methods to see if a new candidate for output can be found. From-SVN: r27872
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 8217a95..9a73364 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -1200,10 +1200,10 @@ finish_class (cl)
tree cl;
{
tree method;
-
- /* Emit deferred inline methods. */
- for ( method = TYPE_METHODS (CLASS_TO_HANDLE_TYPE (current_class));
- method != NULL_TREE; method = TREE_CHAIN (method))
+ tree type_methods = TYPE_METHODS (CLASS_TO_HANDLE_TYPE (current_class));
+
+ /* Emit deferred inline methods. */
+ for (method = type_methods; method != NULL_TREE; )
{
if (! TREE_ASM_WRITTEN (method) && DECL_SAVED_INSNS (method) != 0)
{
@@ -1215,8 +1215,13 @@ finish_class (cl)
temporary_allocation ();
output_inline_function (method);
permanent_allocation (1);
+ /* Scan the list again to see if there are any earlier
+ methods to emit. */
+ method = type_methods;
+ continue;
}
}
+ method = TREE_CHAIN (method);
}
make_class_data (current_class);