[ARM] Factor out the thumb2 -Os implementation.

Marcus Shawcroft marcus.shawcroft@arm.com
Mon Nov 16 16:34:00 GMT 2015

This patch moves the inline ASM thumb2 -Os implementation out into its
own .S file.

Tested by building newlib and comparing libc.a binaries before and
after for all permutations of:

         armv4 armv4t armv5 armv5t armv5te armv6 armv6j armv6k
         armv6z armv6kz armv6t2 armv6-m armv6s-m armv7 armv7-a
         armv7ve armv7-r armv7-m armv7e-m armv8-a iwmmxt iwmmxt2

         thumb arm

       Optimization Levels:
         Os O2

         armv6s-m -mthumb
         armv6-m -mthumb

         armv6zk -mthumb
         armv6z -mthumb
         armv6k -mthumb
         armv6j -mthumb


        * libc/machine/arm/strlen-stub.c: Move T2 -O2 implementation to...
        * libc/machine/arm/strlen-thumb2-Os.S: New file.
        * libc/machine/arm/strlen.S: Include strlen-thumb2-Os.S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ARM-Factor-out-the-thumb2-Os-implementation.patch
Type: text/x-patch
Size: 3767 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20151116/c1875481/attachment.bin>

More information about the Newlib mailing list