http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49230
--- Comment #4 from gee <jojelino at gmail dot com> 2011-06-29 18:03:24 UTC --- Created attachment 24637 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24637 generated asm with i686-pc-mingw32-gcc testsetjmp.c -S -s > I compiled program with 4.6.0 gcc using mingw-w64 as runtime, and I get a > crash yes this testcase crashes at epilogue of main if gcc doesn't do anything but in latest gcc trunk, it doesn't work as expected. sorry. i forgot to say gcc version $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe Target: i686-pc-cygwin Configured with: ./configure --config-cache --prefix=/usr --disable-win32-registry --enable-threads=win32 --enable-languages=c,c++,lto --with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp Thread model: win32 gcc version 4.7.0 20110622 (experimental) (GCC) and i attached asm code latest gcc trunk generated i used i686-pc-mingw32-gcc testsetjmp.c -S -s to generate .s file. . please ld using attached asm file. and i expect you and i get same result. D:\cygwin\tmp>i686-pc-mingw32-gcc testsetjmp.s D:\cygwin\tmp>a start foobar 10 foobar 9 foobar 8 foobar 7 foobar 6 foobar 5 foobar 4 foobar 3 foobar 2 foobar 1 foobar 0 (jit debugger message dialog shows)