Re: [Bug c/41990] New: Incorrect stack setup on x86_64

2009-11-08 Thread Andrew Pinski
The x86_64 abi includes a red zone. So I doubt this a bug in gcc unless netbsd's abi does not match what gcc does. Sent from my iPhone On Nov 8, 2009, at 12:25 PM, "cube at cubidou dot net" > wrote: Provided a somewhat specific set of local variables, and as long as the code of the functio

[Bug c/41990] New: Incorrect stack setup on x86_64

2009-11-08 Thread cube at cubidou dot net
Provided a somewhat specific set of local variables, and as long as the code of the function doesn't make any other function calls, gcc will decrease %rsp but an incorrect and too small value. This leads to local variables being corrupted when the execution is interrupted; this happens notably in