This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: exception_receiver in i386.md
- To: pb at labs dot futuretv dot com
- Subject: Re: exception_receiver in i386.md
- From: John Wehle <john at feith dot com>
- Date: Thu, 18 Jan 2001 18:51:27 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org, rth at redhat dot com
> Mon Jun 22 23:13:47 1998 John Wehle (john@feith.com)
>
> * i386.md (exception_receiver): Define.
>
> John, do you remember why this was done?
md.texi says:
@cindex @code{exception_receiver} instruction pattern
@item @samp{exception_receiver}
This pattern, if defined, contains code needed at the site of an
exception handler that isn't needed at the site of a nonlocal goto. You
will not normally need to define this pattern. A typical reason why you
might need this pattern is if some value, such as a pointer to a global
table, must be restored after control flow is branched to the handler of
an exception. There are no arguments.
The PIC register is a pointer to a global table which may need to be
restored. Is there some other mechanism which guarantees that the
PIC register contains the proper value (i.e. what about a shared
library throwing an exception caught by another shared library)?
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------