This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Java compiler no longer works since 2000-06-13


"H . J . Lu" <hjl@valinux.com> writes:

> java compiler no longer works. The problem is java/parse.y uses
> EXPR_WFL_LINECOL on the INTEGER_CST node when it compiles
> java/lang/ConcreteProcess.java. It used to compile, but I have
> no idea if it actually worked. Now ENABLE_TREE_CHECKING is on
> by default. Java compiler won't work on java/lang/ConcreteProcess.java
> in libgcj. It will be nice that I can do

I ran into related problems last night.  I got this far before I punted:

Index: java-tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/java-tree.h,v
retrieving revision 1.72
diff -u -r1.72 java-tree.h
--- java-tree.h	2000/06/01 07:44:57	1.72
+++ java-tree.h	2000/06/16 17:36:59
@@ -465,11 +465,12 @@
 #define RETURN_MAP_ADJUSTED(NODE) TREE_LANG_FLAG_2(NODE)
 
 /* In the label of a sub-routine, a chain of the return location labels. */
-#define LABEL_RETURN_LABELS(node) DECL_RESULT (LABEL_RETURN_LABEL(node))
+#define LABEL_RETURN_LABELS(node) \
+  (LABEL_DECL_CHECK (LABEL_RETURN_LABEL(node))->decl.result)
 
 /* In a LABEL_DECL, the next pending label.
    See pending_blocks in expr.c. */
-#define LABEL_PENDING_CHAIN(NODE) DECL_RESULT(NODE)
+#define LABEL_PENDING_CHAIN(NODE) (LABEL_DECL_CHECK (NODE)->decl.result)
 
 /* In a LABEL_DECL, the corresponding bytecode program counter. */
 #define LABEL_PC(NODE) ((NODE)->decl.u2.i)
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]