From: Jason Garrett-Glaser Date: Fri, 22 Aug 2008 01:23:08 +0000 (-0400) Subject: Fix compilation in gcc 3.4.x (issue in r946) X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=af82aae3649ba73b4d6bf380fb58ba00527d44d7;p=x264.git Fix compilation in gcc 3.4.x (issue in r946) Due to a bug in gcc 3.4.x, in certain cases of inlining, the array_non_zero_int_mmx inline asssembly is miscompiled and causes a crash with --subme 7 --8x8dct. This minor hack fixes this issue. --- diff --git a/common/x86/util.h b/common/x86/util.h index 006c7ac1..1e45969b 100644 --- a/common/x86/util.h +++ b/common/x86/util.h @@ -100,7 +100,7 @@ static ALWAYS_INLINE int array_non_zero_int_mmx( void *v, int i_count ) { if(i_count == 128) { - int nonzero; + int nonzero = 0; asm( "movq (%1), %%mm0 \n" "por 8(%1), %%mm0 \n"