MD_FALLBACK_FRAME_STATE_FOR and floating point...
Richard Henderson
rth@redhat.com
Tue Oct 21 18:02:00 GMT 2003
On Tue, Oct 21, 2003 at 09:34:15AM -0700, David Daney wrote:
> With this in mind I looked at MD_FALLBACK_FRAME_STATE_FOR for
> i386-linux. I cannot see that it restores floading point registers either.
>
> Q1: Am I missing something?
>
> Q2: Is there some unwritten rule that you should not use floating point
> in signal handlers?
You need to restore registers that are call-saved, so that they'll
be correct when you get to the final destination. On x86, there
are no call-saved floating point registers, so none are restored.
r~
More information about the Gcc
mailing list