Ludovic Courtès wrote:
> >> Should we conclude that this is a GCC bug?
> >
> > Possibly. And what result do you get with "gcc -mieee" ?
> 
> It works (returns 1).
> 
> The GCC manual (info "(gcc) DEC Alpha Options") reads this:
> 
> `-mieee'
> 
>      [...]
>      This option generates code fully IEEE compliant code [...]
> 
>      The resulting code is less efficient but is able to correctly
>      support denormalized numbers and exceptional IEEE values such as
>      not-a-number and plus/minus infinity.

OK. So my conclusion is that without -mieee flag (or -ieee for cc), the
compiler does not deal with NaNs. GCC probably optimizes more aggressively
than cc in this case.

> So people compiling with GCC on this platform should pass `-mieee'
> (`configure' could add it automatically.)

The gnulib module 'fpieee' adds it automatically.

Bruno


Reply via email to