libgcj ,OFS1 on alpha
Anthony Green
green@cygnus.com
Wed Apr 14 10:01:00 GMT 1999
David wrote:
> The next error was a floating point exception in gcjh while compiling in
> the libjava directory. This happens when 'print_field_info' calls
> 'java_float_finite' with not-a-number. I found out that this can be fixed
> on my system by replacing the function definition by
Try replacing your fix here with the following patch:
--- gjavah.c.orig Wed Apr 14 09:55:36 1999
+++ gjavah.c Wed Apr 14 09:55:46 1999
@@ -104,6 +104,9 @@
static void decompile_method PROTO ((FILE *, JCF *, int));
static void add_class_decl PROTO ((FILE *, JCF *, JCF_u2));
+static int java_float_finite PROTO ((jfloat f));
+static int java_double_finite PROTO ((jdouble d));
+
JCF_u2 current_field_name;
JCF_u2 current_field_value;
JCF_u2 current_field_signature;
Without this prototype you'll get float->double promotion on calls to
java_float_finite, which will cause an FPE on the Alpha.
AG
--
Anthony Green Cygnus Solutions
Sunnyvale, California
More information about the Java
mailing list