Re: [Mingw-w64-public] Bugs in setjmp.h

2011-02-23 Thread Kai Tietz
2011/2/23 Dongsheng Song : > On Wed, Feb 23, 2011 at 17:20, Kai Tietz wrote: >> >> >> Hmm, that NULL isn't defined is the issue. So it looks for me more >> >> like a missing header include of stddef.h, or stdlib.h. >> > >> > Yes, but since Linux GCC and MS VC no need include the extra header >> >

Re: [Mingw-w64-public] Bugs in setjmp.h

2011-02-23 Thread Dongsheng Song
On Wed, Feb 23, 2011 at 17:20, Kai Tietz wrote: > >> Hmm, that NULL isn't defined is the issue. So it looks for me more > >> like a missing header include of stddef.h, or stdlib.h. > > > > Yes, but since Linux GCC and MS VC no need include the extra header > files, I > > think > > this should co

Re: [Mingw-w64-public] Bugs in setjmp.h

2011-02-23 Thread Kai Tietz
2011/2/23 Dongsheng Song : > On Wed, Feb 23, 2011 at 16:20, Kai Tietz wrote: >> >> 2011/2/23 Dongsheng Song : >> > Sorry, here is the update source can be compiled by MS VC: >> > >> > $ cat have_sse.c >> > #include >> > #include >> > >> > jmp_buf env; >> > int have_sse_unit = 1; >> > >> > void i

Re: [Mingw-w64-public] Bugs in setjmp.h

2011-02-23 Thread Dongsheng Song
On Wed, Feb 23, 2011 at 16:20, Kai Tietz wrote: > 2011/2/23 Dongsheng Song : > > Sorry, here is the update source can be compiled by MS VC: > > > > $ cat have_sse.c > > #include > > #include > > > > jmp_buf env; > > int have_sse_unit = 1; > > > > void illegal_instruction_catcher(int ignore) { >

Re: [Mingw-w64-public] Bugs in setjmp.h

2011-02-23 Thread Kai Tietz
2011/2/23 Dongsheng Song : > Sorry, here is the update source can be compiled by MS VC: > > $ cat have_sse.c > #include > #include > > jmp_buf env; > int have_sse_unit = 1; > > void illegal_instruction_catcher(int ignore) { >   signal(SIGILL, SIG_DFL); >   longjmp(env, 1); > } > > unsigned int ss

Re: [Mingw-w64-public] Bugs in setjmp.h

2011-02-22 Thread Dongsheng Song
Sorry, here is the update source can be compiled by MS VC: $ cat have_sse.c #include #include jmp_buf env; int have_sse_unit = 1; void illegal_instruction_catcher(int ignore) { signal(SIGILL, SIG_DFL); longjmp(env, 1); } unsigned int sse_get_control() { unsigned int cw; #ifdef _MSC_VER

[Mingw-w64-public] Bugs in setjmp.h

2011-02-22 Thread Dongsheng Song
Hi, Here is the bugs exposed by Parma Polyhedra Library. In setjmp manual, the only required head file is setjmp.h, but mingw-w64 is not the case, here is a example: $ cat have_sse.c #include #include jmp_buf env; int have_sse_unit = 1; void illegal_instruction_catcher(int ignore) { signal