Re: [Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread Jeffrey Walton
Thanks Everyone, Here's what were are proposing; it basically side-steps the issue under MinGW. http://github.com/weidai11/cryptopp/issues/237#issuecomment-236623169 . Prior to our adding ARM support, it was not an issue because the calls to sigprocmask were not present. When we added ARM suppor

Re: [Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 01.08.2016 15:05, LRN wrote: > On 01.08.2016 14:32, Jeffrey Walton wrote: >> On Mon, Aug 1, 2016 at 5:30 AM, LRN wrote: >>> On 01.08.2016 11:25, Jeffrey Walton wrote: >>> My question is, does MinGW support Signals and sigset_t ? >>> >>> No.

Re: [Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread Jeffrey Walton
On Mon, Aug 1, 2016 at 10:06 AM, lhmouse wrote: > SSE2 is mandatory on x64. Yes, agreed. However, SSE2+ also requires OS support. The OS is responsible for saving state via XSAVE. Its possible to have SSE2+ processor and non-capable OS combination. When the OS is not capable, a SIGILL is generat

Re: [Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread lhmouse
SSE2 is mandatory on x64. On x86 you probably want to take a look at Vectored Exception Handling which needs no compiler specific magic. However the canonical way to test a CPU for SSE support would be using the CPUID instruction. -- Best regards, l

Re: [Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 01.08.2016 14:32, Jeffrey Walton wrote: > On Mon, Aug 1, 2016 at 5:30 AM, LRN wrote: >> On 01.08.2016 11:25, Jeffrey Walton wrote: >> >>> My question is, does MinGW support Signals and sigset_t ? >> >> No. >> >>> Or does MinGQW use SEH and try/

Re: [Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread Jeffrey Walton
On Mon, Aug 1, 2016 at 5:30 AM, LRN wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 01.08.2016 11:25, Jeffrey Walton wrote: > >> My question is, does MinGW support Signals and sigset_t ? > > No. > >> Or does MinGQW use SEH and try/except/finally? > > No. Perfect, thanks. Our pr

Re: [Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 01.08.2016 11:25, Jeffrey Walton wrote: > My question is, does MinGW support Signals and sigset_t ? No. > Or does MinGQW use SEH and try/except/finally? No. - -- O< ascii ribbon - stop html email! - www.asciiribbon.org -BEGIN PGP SIGNA

[Mingw-w64-public] [PATCH] Align thread entry point stack

2016-08-01 Thread Aleksey Vasenev
__attribute__((aligned)) don't work for stack variables in threads created with _beginthreadex without alignment. Signed-off-by: Aleksey Vasenev --- mingw-w64-libraries/winpthreads/src/thread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mingw-w64-libraries/winpthreads/src/thread.c b

[Mingw-w64-public] Does MinGW support Signals and sigset_t ?

2016-08-01 Thread Jeffrey Walton
Hi Everyone, My apologies for this question. I don't have a test rig setup with MinGW. I'm finding hits online when searching the compile error, but I did not find a canonical answer from the MinGW folks. We have a user reporting: C:/msys64/home/.../cpu.cpp:107:28: error: 'sigset_t' was not