[flac-dev] ensure that stack is aligned for SSE functions if using mingw32

Tristan Matthews tmatth at videolan.org
Mon Mar 9 18:40:57 PDT 2015

On Mon, Mar 9, 2015 at 7:57 PM, Dave Yeo <dave.r.yeo at gmail.com> wrote:
> On 03/09/15 03:59 PM, lvqcl wrote:
>> Tristan Matthews wrote:
>>> >Unable to test on win32 at the moment, please give this a try. Feedback welcome.
>> I wonder why misaligned stack is a problem only for the FLAC library.
>> There are many other libraries inside VLC...
>> BTW: FLAC 1.3.1 uses -msse2 option by default. Do you remove it?
>> Otherwise libFLAC may crash anywhere else (if its stack is not aligned).
> One workaround is to use -mstackrealign where ever -msse2 is used

Yes, that was one of the options mentioned in the article I linked

More information about the flac-dev mailing list