This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MD_FALLBACK_FRAME_STATE_FOR and floating point...
- From: Richard Henderson <rth at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 21 Oct 2003 10:07:05 -0700
- Subject: Re: MD_FALLBACK_FRAME_STATE_FOR and floating point...
- References: <3F956007.2020600@avtrex.com>
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~