This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
i386 setjmp, asm volatile ("") and -fno-defer-pop
- To: <gcc at gcc dot gnu dot org>
- Subject: i386 setjmp, asm volatile ("") and -fno-defer-pop
- From: Etienne Lorrain <etienne at masroudeau dot com>
- Date: Wed, 20 Dec 2000 01:40:33 -0800 (PST)
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".
Is there a trick with GCC to force the update of the stack pointer
before an asm()?
Thanks,
Etienne.
Note: The source code is at
http://sourceforge.net/projects/gujin/
file "library.h"