http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50678
--- Comment #16 from Iain Sandoe <iains at gcc dot gnu.org> 2011-10-12 11:44:28 UTC --- (In reply to comment #14) > (In reply to comment #11) > > Created attachment 25466 [details] > > test of -fstack-check > > > > a simple test program for Darwin .. > > .. AFAICT this DTRT under 'c' on {powerpc,i386}-darwin9 and also on > > x86_64-darwin10. > > The attached test aborts on x86_64-darwin10 with/without -fstack-check, > pre(r179600)/post revision 179655. What is my mistake? if it's aborting, that is wrong .. send me the .s file please. it should do (something like) this (with or without stack check): $ ./sc [address=bf7ff848 pc=00001ced insn=00040c83] Segmentation Fault on ppc the message should also identify that the stack has overflowed. The program is meant to allow one to check that the correct code has been generated - by scanning the RTL and/or asm. The result of execution should be a caught segfault.