[ARM] Reorganize memchr selection.

Marcus Shawcroft marcus.shawcroft@arm.com
Fri Nov 6 13:58:00 GMT 2015

This patch cleans up the auto configury mechanism used to select
different implementations of memchr for various architecture versions.

The approach here is to remove the selection of memchr within automake
and instead use complimentary logic in memchr-stub.c and memchr.S to
choose between the gerneric memchr.c implementation or one of the
architecture specific implementations.

This patch also changes the selection criteria inline with the
previous proposal here:


but using the ACLE predefines.

Regressed for armv7-a armv5 armv8-a, correct selection of memcpy
implementation by manual inspection of a test program built for these
three architectures.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ARM-Reorganize-memchr-selection.patch
Type: text/x-patch
Size: 18677 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20151106/47eb0bd7/attachment.bin>

More information about the Newlib mailing list