Port-vax archive

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

Re: Libgcc and missing complex support routines



On Sat, Sep 19, 2009 at 03:18:15PM +0200, Martin Husemann wrote:
> On Sat, Sep 19, 2009 at 03:00:57PM +0200, Martin Husemann wrote:
> > +#if MODE_HAS_INFINITIES
> >  #define INFINITY   CONCAT2(__builtin_inf, CEXT) ()
> > +#endif
> >  #define I          1i
> 
> Unfortunately that test is never true, so this breaks other archs - 
> investigating further...

Argh, MODE_HAS_INFINITIES(MODE) is written in a way it can't work as #if
condition. However, it explicitly only can be true if we are targetting
IEEE float format, so this test instead is good enough:

#if TARGET_FLOAT_FORMAT == IEEE_FLOAT_FORMAT
#define INFINITY        CONCAT2(__builtin_inf, CEXT) ()
#endif

I've verified it uses the INFINITY variant on m68k and avoids it on vax.

Martin


Home | Main Index | Thread Index | Old Index