1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/lang/gcc32/files/patch-ub
Gerald Pfeifer 29245523d4 Enable libgcj (which has actually been building fine since GCC 3.1 on
FreeBSD/i386 and works on FreeBSD/alpha using the hack in files/patch-ub).

PR:			47790
Partially Submitted by:	Loren James Rittle <rittle@labs.mot.com>
2003-03-26 17:42:31 +00:00

33 lines
878 B
Plaintext

--- gcc/java/gjavah.c.orig Wed Feb 5 20:39:02 2003
+++ gcc/java/gjavah.c Wed Feb 5 20:43:53 2003
@@ -750,10 +750,14 @@
jfloat fnum = JPOOL_FLOAT (jcf, current_field_value);
fputs ("const jfloat ", out);
print_field_name (out, jcf, name_index, 0);
+#ifdef __alpha__
+ fputs (";\n", out);
+#else
if (! java_float_finite (fnum))
fputs (";\n", out);
else
fprintf (out, " = %.10g;\n", fnum);
+#endif
}
break;
case CONSTANT_Double:
@@ -761,10 +765,14 @@
jdouble dnum = JPOOL_DOUBLE (jcf, current_field_value);
fputs ("const jdouble ", out);
print_field_name (out, jcf, name_index, 0);
+#ifdef __alpha__
+ fputs (";\n", out);
+#else
if (! java_double_finite (dnum))
fputs (";\n", out);
else
fprintf (out, " = %.17g;\n", dnum);
+#endif
}
break;
default: