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 at masroudeau dot com (Etienne Lorrain)
- Subject: Re: i386 setjmp, asm volatile ("") and -fno-defer-pop
- From: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Date: Thu, 21 Dec 2000 23:50:10 +0000 (GMT)
- Cc: rth at redhat dot com (Richard Henderson), gcc at gcc dot gnu dot org
> More seriously, it is not related to "asm()": I will have the same
> problem with real setjmp/longjmp defined in assembler in a library.
> Compiling without "-fno-defer-pop" means that I will get stack
> adjustment after a setjmp() which are related to the functions
> called before it.
So what? longjmp will restore the stack to the value it had at the setjmp
site, so you really want these stack adjustments.