This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PowerPC64 power7 strncpy stack handling and cfi
- From: "Tulio Magno Quites Machado Filho" <tuliom at linux dot vnet dot ibm dot com>
- To: Alan Modra <amodra at gmail dot com>, libc-alpha at sourceware dot org
- Cc:
- Date: Fri, 20 Oct 2017 22:12:21 -0200
- Subject: Re: PowerPC64 power7 strncpy stack handling and cfi
- Authentication-results: sourceware.org; auth=none
- References: <20171020130431.GB27132@bubble.grove.modra.org>
Alan Modra <amodra@gmail.com> writes:
> This patch moves the frame setup and teardown to immediately around
> the single memset call, as has been done for power8. I've also
> decreased FRAMESIZE to that needed to save the two callee-saved
> registers used. Plus added cfi.
>
> Tested on power7 powerpc64-linux.
>
> * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
> Move LR save and frame setup/teardown and LR restore to
> immediately around memset call. Provide cfi.
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
--
Tulio Magno