[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] gcc / m68k + 68030 + fpu
On sunnuntai 30 kesäkuu 2013, Douglas Little wrote:
> On 29 June 2013 23:53, Douglas Little <email@example.com> wrote:
> > Here's another curious case I encountered with BM today. I tried to
> > remove all the FPU code from the project and this was done quite
> > easily. However when I disable the FPU in Hatari and run the game, it
> > terminates with this error:
> > "This program requires a 68881 or higher
> > arithmetic coprocessor and cannot be run
> > on this machine."
> > This is a bit strange, because the project was built without the
> > -m68881 flag (I used -m68030 -msoft-float) and I removed the libm
> > reference after taking out the code which relied on it.
> > There are still some floats left in the code (which look essential for
> > table building) so I didn't want to to remove those, but I shouldn't
> > really need to.
> > Perhaps this version of GCC is hardwired to assume floats always use an
> > FPU? no -msoft-float support?
> Well it seems like the crt0.o has been compiled with __M68881__ and there
> is a compiletime condition inside which checks for the _FPU cookie and
> aborts if it is not present. I don't really see how that can work if one
> crt0.o is to be used for different processor configurations. There is
> only one present in the gcc 4.6.3 install package so it seems I'm stuck
> unless I replace it.
As you're using Vincent's cross-compiler, it's probably best ask him
about it. I put a CC to MiNT mailing list.