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]

Problems with m68k - GCC 2.95.3-4



> 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


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