This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/4925: __builtin_memcpy overcopies on ix86 in gcc 3.0.2
- From: Ian Lance Taylor <ian at airs dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 22 Nov 2001 00:56:01 -0000
- Subject: Re: c/4925: __builtin_memcpy overcopies on ix86 in gcc 3.0.2
- Reply-to: Ian Lance Taylor <ian at airs dot com>
[Get raw message]
The following reply was made to PR c/4925; it has been noted by GNATS.
From: Ian Lance Taylor <ian@airs.com>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c/4925: __builtin_memcpy overcopies on ix86 in gcc 3.0.2
Date: 21 Nov 2001 16:46:38 -0800
gcc-gnats@gcc.gnu.org writes:
> Thank you very much for your problem report.
> It has the internal identification `c/4925'.
> The individual assigned to look at your
> report is: unassigned.
>
> >Category: c
> >Responsible: unassigned
> >Synopsis: __builtin_memcpy overcopies on ix86 in gcc 3.0.2
> >Arrival-Date: Wed Nov 21 16:26:00 PST 2001
I believe this is the patch which fixes the bug. A version of this
patch appears in the current development sources.
Ian
Index: i386.md
===================================================================
RCS file: /home/cvsfiles/tools/egcs/gcc/config/i386/i386.md,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 i386.md
--- i386.md 2001/11/14 22:28:55 1.1.1.4
+++ i386.md 2001/11/22 00:46:27
@@ -10917,7 +10917,7 @@
LABEL_NUSES (label) = 1;
}
if (align > 1 && count > 0 && (count & 1))
- emit_insn (gen_strmovsi (destreg, srcreg));
+ emit_insn (gen_strmovqi (destreg, srcreg));
if (align <= 1 || count < 0)
{
rtx label = gen_label_rtx ();