This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Use types_compatible_p in gimplify_modify_expr_rhs
- From: Richard Henderson <rth at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Dec 2004 15:18:22 -0800
- Subject: Re: PATCH: Use types_compatible_p in gimplify_modify_expr_rhs
- References: <200412232159.iBNLxR1n012336@sethra.codesourcery.com>
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~