[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GCC define for detecting FPU



> Ideally, all the old code should be patched to test __HAVE_68881__ only,
> and
> GCC 2.95.3 should be patched to set that define. But it is a bit
> idealistic.

Defining both, __HAVE_68881__ & __M68881__ sounds more compatible and like
less work.

> So I propose to patch GCC 4.x and *add* the nonstandard __M68881__
> whenever
> the standard __HAVE_68881__ is defined.
> Old code will be automatically compatible. That define is nonstandard, so
> it
> should not hurt anything.

> For new code, we will say: test __HAVE_68881__, forget about __M68881__.
> If compatibility is required with the current GCC 2.95.3 binary, both
> defines should be tested.

Sounds reasonable to me. :)


-- 
Greets,
m