[linux-dvb] softdevice compile fix for gcc > 3.x.x

Alexw alexw at undercover.mine.nu
Thu Jun 16 13:57:13 CEST 2005


Hi,

Here is a diff to get the softdevice plugin compiled with recent gcc version.

--- utils.c_ori 2005-06-16 12:56:32.000000000 +0200
+++ utils.c     2005-06-16 12:56:53.000000000 +0200
@@ -403,8 +403,8 @@
                MOVNTQ" %%mm6, 48(%1)\n"
                MOVNTQ" %%mm7, 56(%1)\n"
                :: "r" (from), "r" (to) : "memory");
-               ((const unsigned char *)from)+=64;
-               ((unsigned char *)to)+=64;
+                from=((const unsigned char *) from)+64;
+                to=((unsigned char *)to)+64;
        }

 //     printf(" %d %d\n", (int)from&1023, (int)to&1023);
@@ -492,8 +492,8 @@
                MOVNTQ" %%mm6, 48(%1)\n"
                MOVNTQ" %%mm7, 56(%1)\n"
                :: "r" (from), "r" (to) : "memory");
-               ((const unsigned char *)from)+=64;
-               ((unsigned char *)to)+=64;
+                from=((const unsigned char *) from)+64;
+                to=((unsigned char *)to)+64;
        }

 #ifdef USE_MMX2

Regards,

Alex




More information about the linux-dvb mailing list