From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1680 invoked by alias); 13 Jun 2002 16:16:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1623 invoked by uid 71); 13 Jun 2002 16:16:02 -0000 Date: Thu, 13 Jun 2002 09:16:00 -0000 Message-ID: <20020613161602.1621.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Jakub Jelinek Subject: Re: c/7010: Bug in 3.1 with inline memcpy Reply-To: Jakub Jelinek X-SW-Source: 2002-06/txt/msg00307.txt.bz2 List-Id: The following reply was made to PR c/7010; it has been noted by GNATS. From: Jakub Jelinek To: Jan Hubicka Cc: Martin Kahlert , gcc-patches@gcc.gnu.org, rth@cygnus.com, aj@suse.de, gcc-gnats@gcc.gnu.org Subject: Re: c/7010: Bug in 3.1 with inline memcpy Date: Thu, 13 Jun 2002 12:13:12 -0400 On Thu, Jun 13, 2002 at 06:05:55PM +0200, Jan Hubicka wrote: > > #include > > > > int main() > > { > > char dst[16]; > > char src[16]; > > int tocopy = 5; > > > > memcpy (dst+5, src, tocopy); > > > > return 0; > > } > > Oh no, another pasto in my code :( > I am just proffreading both functions to catch similar bugs, if they > exists. > > Bootstrapped/regtested branch, OK for mainline/branch? > Ok to add testcase into mainline testsuite? I think the testcase would be useful on branch too, just it shouldn't use string.h but whatever simplified code reproduces this (as with string.h it depends on what exact libc you're using etc.). Jakub