http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54952
Bug #: 54952 Summary: Program crash on M32C when stack frame is more then 128 bytes Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: m.gala...@centrosistemi.it Created attachment 28461 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28461 Test case m32c-elf-gcc (GCC) 4.7.2 hosted on Windows XP. If I compile and run the attached program with: m32c-elf-gcc -msim -mcpu=m32c -O1 -DDATASIZE=126 stack.c m32c-elf-run a.out it works well. But if I increase DATASIZE to 127: m32c-elf-gcc -msim -mcpu=m32c -O1 -DDATASIZE=127 stack.c m32c-elf-run a.out the program crashes.