This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][Testsuite] Use user defined memmove in gcc.c-torture/execute/builtins/memops-asm-lib.c
- From: Jeff Law <law at redhat dot com>
- To: Renlin Li <renlin dot li at foss dot arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Martin Sebor <msebor at gmail dot com>, richard dot sandiford at arm dot com
- Date: Fri, 23 Jun 2017 11:10:57 -0600
- Subject: Re: [PATCH][Testsuite] Use user defined memmove in gcc.c-torture/execute/builtins/memops-asm-lib.c
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=law at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 9C52380465
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9C52380465
- References: <594CDD3A.9090902@foss.arm.com>
On 06/23/2017 03:19 AM, Renlin Li wrote:
> Hi all,
>
> After the change r249278. bcopy is folded into memmove. And in newlib
> aarch64
> memmove implementation, it will call memcpy in certain conditions.
> The memcpy defined in memops-asm-lib.c will abort when the test is running.
>
> In this case, I defined a user memmove function which by pass the
> library one.
> So that memcpy won't be called accidentally.
>
> Okay to commit?
>
> gcc/testsuite/ChangeLog:
>
> 2017-06-22 Renlin Li <renlin.li@arm.com>
> Szabolcs Nagy <szabolcs.nagy@arm.com>
>
> * gcc.c-torture/execute/builtins/memops-asm-lib.c (my_memmove): New.
> * gcc.c-torture/execute/builtins/memops-asm.c (memmove): Declare
> memmove.
OK.
jeff