This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Use types_compatible_p in gimplify_modify_expr_rhs


On Thu, Dec 23, 2004 at 01:59:27PM -0800, Mark Mitchell wrote:
>   void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n)
>   {
> +   char *d = (char *) dest;
> +   const char *s = (const char *) src;
> +   while (n--)
> +     d[n] = s[n];
>     ++i;
>   }

Also need "return dest".


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]