This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: PR 16405
- 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 02:50:25 -0800
- Subject: Re: C++ PATCH: PR 16405
- References: <200412230812.iBN8CjP2028122@sethra.codesourcery.com>
On Thu, Dec 23, 2004 at 12:12:45AM -0800, Mark Mitchell wrote:
> + && (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_OPERAND (pointer, 0)))
> + == TYPE_MAIN_VARIANT (TREE_TYPE (*from_p))))
lang_hooks.types_compatible_p?
> + extern "C"
> + void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n)
> + {
> + ++i;
> + }
Does the testcase really start up? In some cases you'll wind
up invoking this memcpy before we even get to main. See the
sort of contortions we go through in gcc.c-torture/execute/builtins/
for testing this sort of thing.
r~