[MPlayer-cvslog] CVS: main/postproc swscale_template.c,1.119,1.120

Guillaume Poirier CVS syncmail at mplayerhq.hu
Tue Jul 12 21:16:06 CEST 2005


CVS change done by Guillaume Poirier CVS

Update of /cvsroot/mplayer/main/postproc
In directory mail:/var2/tmp/cvs-serv31875

Modified Files:
	swscale_template.c 
Log Message:
Re-enables the GCC-4 fix for AMD-64 only. Patch by cartman and poirierg


Index: swscale_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale_template.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -r1.119 -r1.120
--- swscale_template.c	30 Jun 2005 05:35:26 -0000	1.119
+++ swscale_template.c	12 Jul 2005 19:16:04 -0000	1.120
@@ -2547,7 +2547,13 @@
 		"cmp %2, %%"REG_a"		\n\t"
 		" jb 1b				\n\t"
 
+/* GCC-3.3 makes MPlayer crash on IA-32 machines when using "g" operand here,
+   which is needed to support GCC-4.0 */
+#if defined(ARCH_X86_64) && ((__GNUC__ > 3) || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+		:: "m" (src1), "m" (dst), "g" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
+#else
 		:: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
+#endif
 		"r" (src2)
 		: "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi"
 		);




More information about the MPlayer-cvslog mailing list