On 08/18/2011 07:03 AM, Jakub Jelinek wrote:
> PR target/50092
> * config/i386/i386.c (assign_386_stack_local): Call validize_mem
> on the result before returning it.
>
> * gcc.dg/torture/pr50092.c: New test.
Ok.
r~
Hi!
If stack frame size is larger than 2GB, the MEMs returned by
assign_386_stack_local aren't necessarily valid MEMs. While we could do
validize_mem in all the assign_386_stack_local callers, it seems far easier
to do it just in one (well, two actually) spots.
Bootstrapped/regtested on x86_64-l