]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow codecs that use log2comp (g726) to compile correctly on x86 with gcc4 optimizat...
authorJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 19:23:44 +0000 (19:23 +0000)
committerJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 19:23:44 +0000 (19:23 +0000)
(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

codecs/log2comp.h

index 56f2d8305d74344074e8347a9cf06cc1c10dcde0..aa397c858f5426bbe1df0bcd652b76ed75db72a1 100644 (file)
@@ -43,7 +43,7 @@ static inline int ilog2(int val)
                decl    %0                      ;\
                bsrl    %1, %0          ;\
                "
-               : "=r" (a)
+               : "=&r" (a)
                : "mr" (val)
                : "cc"
        );