This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Patch to compile gcjx
- From: Mike Emmel <mike dot emmel at gmail dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 28 Nov 2005 08:26:21 -0600
- Subject: Patch to compile gcjx
My first patch I had to move the class instantions below the the
method defs to get it work. This should not hurt anyone and it fixes
my bug it looks like my particular version of gcc is not capable of
doing the specialization right.
Mike
Index: invoke.cc
===================================================================
--- invoke.cc (revision 107588)
+++ invoke.cc (working copy)
@@ -703,13 +703,6 @@
// Instantiations.
-template class model_generic_invocation<model_method_invocation>;
-template class model_generic_invocation<model_type_qualified_invocation>;
-template class model_generic_invocation<model_super_invocation>;
-template class model_generic_invocation<model_this_invocation>;
-template class model_generic_invocation<model_new>;
-template class model_generic_invocation<model_new_primary>;
-
template<>
void
model_generic_invocation<model_method_invocation>::visit (visitor *v)
@@ -756,3 +749,10 @@
v->visit_generic_invocation (this, method, klass, arguments, simple_name,
type_params, actual_type_params);
}
+
+template class model_generic_invocation<model_method_invocation>;
+template class model_generic_invocation<model_type_qualified_invocation>;
+template class model_generic_invocation<model_super_invocation>;
+template class model_generic_invocation<model_this_invocation>;
+template class model_generic_invocation<model_new>;
+template class model_generic_invocation<model_new_primary>;