This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
Re: gcj/37
- To: apbianco@cygnus.com, bryce@albatross.co.nz, green@cygnus.com, java-prs@sourceware.cygnus.com
- Subject: Re: gcj/37
- From: apbianco@cygnus.com
- Date: 23 Aug 1999 23:16:15 -0000
Synopsis: gcj fails to compile "jBYTEmark" from source code when optimization is used
State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Mon Aug 23 16:16:15 1999
State-Changed-Why:
It seems that this bug might have been fixed by Anthony
on August 14th. Here's the patch:
1999-08-14 Anthony Green <green@cygnus.com>
* expr.c (java_lang_expand_expr): Mark static array data as
referenced.
Index: expr.c
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/expr.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -p -r1.46 -r1.47
--- expr.c 1999/08/10 16:58:12 1.46
+++ expr.c 1999/08/15 08:31:56 1.47
@@ -1944,6 +1944,7 @@ java_lang_expand_expr (exp, target, tmod
DECL_INITIAL (init_decl) = init;
DECL_IGNORED_P (init_decl) = 1;
TREE_READONLY (init_decl) = 1;
+ TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1;
make_decl_rtl (init_decl, NULL, 1);
init = init_decl;
}
Note: I can get my current egcs tree on a Debian box to compile
and link it correctly with the -O2 flag. I can also reproduce
the -O3 SEGV problem on two files: `EmFloatPnt.java' and
`NeuralNetTest.java'. I'll have a look at it.
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=37