[PATCH] [GCC testsuite] SEQUENCE_LENGTH in memcpy-2.c

Greta Yorsh Greta.Yorsh@arm.com
Mon Sep 19 15:43:00 GMT 2011


This patch improves an existing test case for memcpy. The test case
memcpy-2.c checks that memory outside the destination is not corrupted. The
check fails if SEQUENCE_LENGTH < MAX_OFFSET, although it does not happen
with the default values of these macros. This patch fixes the check to work
for small values of SEQUENCE_LENGTH. The patch also allows SEQUENCE_LENGTH
to be redefined without a compiler warning. 

The patched test case passes on arm-none-eabi --with-cpu cortex-a9 on qemu.


2011-09-19  Greta Yorsh  <Greta.Yorsh@arm.com>

	* gcc.c-torture/execute/memcpy-2.c (main): Fix validation of memcpy 
	to work for small values of SEQUENCE_LENGTH.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-testcase-memcpy-2.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110919/99c99c19/attachment.txt>


More information about the Gcc-patches mailing list