Problems with m68k - GCC 2.95.3-4
Stephen L Moshier
moshier@mediaone.net
Mon Aug 20 05:01:00 GMT 2001
> GCC 2.95.3-4 seems to have problems with calculating of floating
> point, if there occurs in a programm -0.0000. If this value is
> multiplied by 0.5 the result is a value like '2.0e32' or a similar
> great number. When I use the Hardware-FPU-Code (-m68881) the problems
> are not there, but with the soft-floating-point it is there and may
> cause problems with compiled programs.
You might try using one of the run-time floating point libraries that
come with GCC. For example to use gcc/config/fp-bit.c, change the
Makefile to include the following:
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
dp-bit.c: $(srcdir)/config/fp-bit.c
cat $(srcdir)/config/fp-bit.c > dp-bit.c
fp-bit.c: $(srcdir)/config/fp-bit.c
echo '#define FLOAT' > fp-bit.c
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
More information about the Gcc
mailing list