From af82aae3649ba73b4d6bf380fb58ba00527d44d7 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Thu, 21 Aug 2008 21:23:08 -0400 Subject: [PATCH] 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. --- common/x86/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.47.3