Re: [patch, libgcc] Bug in fp-bit.c when NO_NANS is defined

2012-11-30 Thread Joseph S. Myers
On Fri, 30 Nov 2012, Steve Ellcey wrote: > While investigating some soft-float issues I tried compiling fp-bit.c in > libgcc with NO_NANS defined. I wound up with an undefined reference to > makenan. Unless anything in the tree defines NO_NANS, I suggest we remove all support for such a macro

[patch, libgcc] Bug in fp-bit.c when NO_NANS is defined

2012-11-30 Thread Steve Ellcey
While investigating some soft-float issues I tried compiling fp-bit.c in libgcc with NO_NANS defined. I wound up with an undefined reference to makenan. Here is my attempt at a patch to fix the problem but I am not sure if returning 0 is the right thing to do for b/0 when NO_NANS is defined. is