Mail Archives: djgpp/1997/06/12/17:45:15
At 06:20 6/12/1997 +0300, you wrote:
>
>On Tue, 10 Jun 1997, Nate Eldredge wrote:
>
>> >new here. `symify' crashes because Windows doesn't reset the FPU
>> >after the first program crashes; nothing new here either.
>>
>> Then maybe the handler that aborts the program on receipt of the signal
>> ought to reset the FPU. It seems like a bad idea to leave the system
>> unstable.
>
>It's probably better to do that in the exit code, not in the SIGFPE
>handler (somebody could install a signal handler for SIGFPE that just
>returns, and then the program would leave the FPU scrogged on exit).
Good point. Maybe the best way to do it is add `fclex' somewhere in _exit
(see src/libc/crt0/crt0.S, line 282). Since _exit gets called *anytime* the
program exits (AFAIK), that should take care of it.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -