[Bug target/51955] _mm_setzero_si128 intrinsic causes segfault without -O
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51955 --- Comment #5 from Richard Guenther 2012-01-23 10:50:52 UTC --- void _start() { main(); } isn't properly aligning the stack for the ABI GCC assumes. Simply drop it.
[Bug target/51955] _mm_setzero_si128 intrinsic causes segfault without -O
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51955 --- Comment #4 from Dale Weiler 2012-01-23 03:59:58 UTC --- (In reply to comment #3) > This is a bug in how your _start does not realign the stack to 16 byte > aligned. > movdqa%xmm0, -32(%rbp) > movdqa-32(%rbp), %xmm0 > movdqa%xmm0, -16(%rbp) > > rbp0x7fffe3880x7fffe388 > rsp0x7fffe3880x7fffe388 Interesting, even with alignment it crashes however: while intptr_t)data)&15)) data++; What exactly should be aligned the const char * for kill()? I'm unsure to what you mean in regards to realigning the stack for _just _start.
[Bug target/51955] _mm_setzero_si128 intrinsic causes segfault without -O
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51955 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID --- Comment #3 from Andrew Pinski 2012-01-23 02:38:46 UTC --- This is a bug in how your _start does not realign the stack to 16 byte aligned. movdqa%xmm0, -32(%rbp) movdqa-32(%rbp), %xmm0 movdqa%xmm0, -16(%rbp) rbp0x7fffe3880x7fffe388 rsp0x7fffe3880x7fffe388