This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, middle-end]: Fix 35526, ICE on memcpy
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 11 Mar 2008 07:46:12 -0400
- Subject: Re: [PATCH, middle-end]: Fix 35526, ICE on memcpy
- References: <5787cf470803110411h6b11d252q1fbcd4bba26ee8a1@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Mar 11, 2008 at 12:11:55PM +0100, Uros Bizjak wrote:
> --- testsuite/g++.dg/torture/pr35526.C (revision 0)
> +++ testsuite/g++.dg/torture/pr35526.C (revision 0)
> @@ -0,0 +1,18 @@
> +/* { dg-do compile } */
> +
> +extern void *memcpy (void *__dest, __const void *__src, unsigned long __n);
This is incorrect on many targets. Should be __SIZE_TYPE__ instead of
unsigned long.
Jakub