This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i386 setjmp, asm volatile ("") and -fno-defer-pop
- To: Etienne Lorrain <etienne at masroudeau dot com>
- Subject: Re: i386 setjmp, asm volatile ("") and -fno-defer-pop
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 20 Dec 2000 13:15:11 -0800
- CC: gcc at gcc dot gnu dot org
- References: <Pine.LNX.4.30.0012200126210.22894-100000@hp.masroudeau.com>
Etienne Lorrain <etienne@masroudeau.com> writes:
> Hello,
>
> I have redefined my own setjmp()/longjmp() inline functions for
> a special use (i386 realmode) but keeping same meaning.
> The special thing about these functions is that they transfer
> the control to somewhere else - and so any "defer-pop" optimisation
> is not really welcome across those "asm volatile inline functions".
It doesn't work to transfer control inside an 'asm'. There will be
other problems besides the one you're seeing.
--
- Geoffrey Keating <geoffk@geoffk.org>