This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: compiling gcj front end
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 09 Oct 2005 15:44:43 -0600
- Subject: [gcjx] Patch: FYI: compiling gcj front end
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
This makes it possible to compile the gcj front end again.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* tree.cc (visit_field_ref): Removed 'const'.
(visit_method_invocation): Likewise.
Index: tree.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Attic/tree.cc,v
retrieving revision 1.1.2.51
diff -u -r1.1.2.51 tree.cc
--- tree.cc 4 Oct 2005 22:15:27 -0000 1.1.2.51
+++ tree.cc 9 Oct 2005 21:50:34 -0000
@@ -1920,9 +1920,9 @@
void
tree_generator::visit_field_ref (model_field_ref *elt,
const ref_expression &expr,
- const model_field *field)
+ model_field *field)
{
- bool should_inline = const_cast<model_field *> (field)->inlineable_p ();
+ bool should_inline = field->inlineable_p ();
// Note that we don't need any special handling for 'array.length'
// -- the generic code here works fine.
@@ -2164,7 +2164,7 @@
void
tree_generator::visit_method_invocation (model_method_invocation *elt,
- const model_method *meth,
+ model_method *meth,
const ref_expression &this_expr,
const std::list<ref_expression> &args)
{