softdevice compile fix for gcc > 3.x.x

Message ID 200506161421.30975.alexw@undercover.mine.nu
State New
Headers

Commit Message

Alexw June 16, 2005, 12:21 p.m. UTC
  Hi,

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


Regards,

Alex
  

Comments

Martin Wache June 26, 2005, 8:23 p.m. UTC | #1
Alexw schrieb:
> Hi,
> 
> Here is a diff to get the softdevice plugin compiled with recent gcc version.
> 
Sorry, for the long delay, I was quite busy during the last time and I
forgot about your patch. Now I was reminded and I finally applied it.
Thanks for the patch!

Martin
  
Alexw June 27, 2005, 7:38 a.m. UTC | #2
On Sunday 26 June 2005 22:23, Martin Wache wrote:
> Alexw schrieb:
> > Hi,
> >
> > Here is a diff to get the softdevice plugin compiled with recent gcc
> > version.
>
> Sorry, for the long delay, I was quite busy during the last time and I
> forgot about your patch. Now I was reminded and I finally applied it.
> Thanks for the patch!
>
> Martin
>

;-) You're welcome.

Alex

> _______________________________________________
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
  

Patch

--- 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