Dave Yeo
2015-Mar-09 23:57 UTC
[flac-dev] ensure that stack is aligned for SSE functions if using mingw32
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 Dave
Tristan Matthews
2015-Mar-10 01:40 UTC
[flac-dev] ensure that stack is aligned for SSE functions if using mingw32
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 usedYes, that was one of the options mentioned in the article I linked (http://www.peterstock.co.uk/games/mingw_sse)
Erik de Castro Lopo
2015-Mar-10 10:37 UTC
[flac-dev] ensure that stack is aligned for SSE functions if using mingw32
Tristan Matthews wrote:> > One workaround is to use -mstackrealign where ever -msse2 is used > > Yes, that was one of the options mentioned in the article I linked > (http://www.peterstock.co.uk/games/mingw_sse)Can someone confirm that -mstackrealign fixes this issue? If it works, that seems like the sanest solution. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/