[flac-dev] PATCH: OS SSE support detection for GCC on Windows

lvqcl lvqcl.mail at gmail.com
Sun Mar 9 14:26:31 PDT 2014


libFLAC for Windows compiled with GCC/MinGW can't detect SSE OS support:
it can't use GCC+Linux detection code and can't use MSVC+Win32 code that
uses SEH (__try/__except). So it doesn't use any SSE/SSE2/etc routines.

One way to fix it is to call configure script with --enable-sse
(flac will probably crash on Win95/WinNT4 but who cares).

Another way is to add a new code just for GCC+Win32 case.
The patch is attached.



...One thing that worries me is the comment in cpu.c:
     /* sigill_handler flavor resulted in several crash reports on win32 */
but the corresponding ticket #307 ( http://sourceforge.net/p/flac/bugs/307/ )
doesn't reveal any details.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu_gcc_win32.patch
Type: application/octet-stream
Size: 3350 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140310/347f5521/attachment.obj 


More information about the flac-dev mailing list