Date: Thu, 6 May 1999 19:11:00 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: DJ Delorie , Nate Eldredge cc: djgpp-workers AT delorie DOT com, sandmann AT clio DOT rice DOT edu Subject: Re: _clear87 at exit In-Reply-To: <199905061407.KAA12145@envy.delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 6 May 1999, DJ Delorie wrote: > I wouldn't call _clear87() unless we know we've detected and used the > FPU, else exiting the program may *load* the FPU emulator. Right. This is easy enough to do, I just have to look at the value of _8087. Hmm... it seems we need to change npxsetup.c to set _8087 when $387 is set to Y in the environment. Right now it is left at zero; however, my references indicate that in Borland _8087's value reflects the override of the environment. Comments? Nate, is there any reason why _8087 isn't set in the case of 387=Y?