[asterisk-commits] qwell: trunk r111857 - in /trunk: ./ codecs/gsm/inc/private.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 28 16:46:03 CDT 2008


Author: qwell
Date: Fri Mar 28 16:46:02 2008
New Revision: 111857

URL: http://svn.digium.com/view/asterisk?view=rev&rev=111857
Log:
Merged revisions 111856 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r111856 | qwell | 2008-03-28 16:45:35 -0500 (Fri, 28 Mar 2008) | 12 lines

Allow gsm to compile correctly on x86 with gcc4 optimizations.

(closes issue #11243)
Reported by: whiskerp
Patches:
      11243-maybe-asm.diff uploaded by qwell (license 4)
Tested by: Seggy (IRC)

Note: While I did write this patch, I would not have found this if fossil
 had not reported and fixed issue #12253.  A huge thanks to him for helping
 to (indirectly) find the problem here.

........

Modified:
    trunk/   (props changed)
    trunk/codecs/gsm/inc/private.h

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/codecs/gsm/inc/private.h
URL: http://svn.digium.com/view/asterisk/trunk/codecs/gsm/inc/private.h?view=diff&rev=111857&r1=111856&r2=111857
==============================================================================
--- trunk/codecs/gsm/inc/private.h (original)
+++ trunk/codecs/gsm/inc/private.h Fri Mar 28 16:46:02 2008
@@ -105,7 +105,7 @@
 	__asm__ __volatile__(
 	
 			"addl %2,%0; jno 0f; movl $0x7fffffff,%0; adcl $0,%0; 0:"
-			: "=r" (a)
+			: "=&r" (a)
 			: "0" (a), "ir" (b)
 			: "cc"
 		);
@@ -116,7 +116,7 @@
 {
 	__asm__ __volatile__(
 			"addw %2,%0; jno 0f; movw $0x7fff,%0; adcw $0,%0; 0:"
-			: "=r" (a)
+			: "=&r" (a)
 			: "0" (a), "ir" (b)
 			: "cc"
 		);
@@ -127,7 +127,7 @@
 {
 	__asm__ __volatile__(
 			"subw %2,%0; jno 0f; movw $0x7fff,%0; adcw $0,%0; 0:"
-			: "=r" (a)
+			: "=&r" (a)
 			: "0" (a), "ir" (b)
 			: "cc"
 		);




More information about the asterisk-commits mailing list