Bug 46119

Summary: -fsplit-stack -fstack-protector-all - code crashes when passing large struct via stack
Product: gcc Reporter: Zdenek Sojka <zsojka>
Component: middle-endAssignee: Not yet assigned to anyone <unassigned>
Status: UNCONFIRMED ---    
Severity: normal CC: iant
Priority: P3 Keywords: wrong-code
Version: 4.6.0   
Target Milestone: ---   
Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu
Build: Known to work:
Known to fail: 4.6.0 Last reconfirmed:
Attachments: reduced testcase

Description Zdenek Sojka 2010-10-21 16:04:24 UTC
Created attachment 22108 [details]
reduced testcase

$ gcc -fsplit-stack -fstack-protector-all pr46119.c
$ ./a.out 
Segmentation fault

Tested revisions:
r165768 - fail
Comment 1 Andrew Pinski 2012-02-02 17:26:40 UTC
This works for me on the trunk