delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/12/23/16:49:28

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Message-ID: <3FE8BB51.7060505@phekda.gotadsl.co.uk>
Date: Tue, 23 Dec 2003 22:01:53 +0000
From: Richard Dawe <rich AT phekda DOT gotadsl DOT co DOT uk>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031031
X-Accept-Language: en, de, fr
MIME-Version: 1.0
To: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Re: Fwd: isnanf et al
References: <25 DOT 426e728a DOT 2d1a09d4 AT aol DOT com>
In-Reply-To: <25.426e728a.2d1a09d4@aol.com>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Kbwms AT aol DOT com wrote:
> In a message dated 12/23/2003 2:17:28 PM Eastern Standard Time, 
> rich AT phekda DOT gotadsl DOT co DOT uk writes:
> 
>>
>> I completely confused by this thread. I think I'm confusing you guys
>> too. I'll get back to you with an answer sometime in the new year.

Thanks for forwarding me those. I'm not as confused as I thought I was. ;)

> Some misguided, hapless individual cluttered 24 functions in libm of 
> type float with code that was not needed.  Some of it was incorrect as 
> pointed out in the forwarded email.

I applied those patches (with some minor changes) for Andrew Cottrell 
(pardon pointing the finger). This was done as part of the type-punning 
fixes for gcc 3.3.x. I didn't realise at the time that the fixes were 
broken, so mea culpa.

> Here is the magic patch that fixes the problem:
> 
> --- c:/djgpp.204/src/libm/math/fdlibm.h 1998-10-04 06:48:42.000000000 -0400
> +++ c:/djgpp/src/libm/math/fdlibm.h 2003-12-15 11:44:02.000000000 -0500
> @@ -22,6 +22,10 @@
> #include <machine/ieeefp.h>
> #endif
> 
> +#undef isnanf
> +#undef isinff
> +#undef finitef
> +
> /* CYGNUS LOCAL: Default to XOPEN_MODE.  */
> #define _XOPEN_MODE

Why not just remove the definitions of is*f from <ieefp.h>?

> If the changes persist into DJGPP v2.04, I will submit correcting 
> patches that restore the code.  The functions to be "reverted" are 
> listed in the forwarded email and below:
[snip]

I can revert the patches I applied, once my question about <ieefp.h> 
above is answered.

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]

"You can't evaluate a man by logic alone."
   -- McCoy, "I, Mudd", Star Trek

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019