Is GCC V3.4.6 supposed to be SystemV i386 ABI v4 compliant?

David Daney ddaney@caviumnetworks.com
Fri Jan 16 01:26:00 GMT 2009


Curtis Taylor wrote:
> I have a case of g++ generating this instruction:
> 	add	$0xe,%esp
> and creating a non 32bit aligned %esp.  This is enabling a SIGSEGV in a
> signal handler that expects the stack to be word aligned.  
> 
> How can I find out if GCC V3.4.6 is intended to keep the stack word
> aligned at all times as required according to System V i386 ABI v4?
> 

Does the ABI really require that the stack be aligned in places other 
than at function entry?


David Daney



More information about the Gcc-help mailing list