From: Jason Parker Date: Tue, 18 Mar 2008 19:23:44 +0000 (+0000) Subject: Allow codecs that use log2comp (g726) to compile correctly on x86 with gcc4 optimizat... X-Git-Tag: 1.4.19-rc4~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b72a4686df1aa74c5936bd2549ec0e3be44cc654;p=thirdparty%2Fasterisk.git Allow codecs that use log2comp (g726) to compile correctly on x86 with gcc4 optimizations. (closes issue #12253) Reported by: fossil Patches: log2comp.patch uploaded by fossil (license 140) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@109648 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/codecs/log2comp.h b/codecs/log2comp.h index 56f2d8305d..aa397c858f 100644 --- a/codecs/log2comp.h +++ b/codecs/log2comp.h @@ -43,7 +43,7 @@ static inline int ilog2(int val) decl %0 ;\ bsrl %1, %0 ;\ " - : "=r" (a) + : "=&r" (a) : "mr" (val) : "cc" );