glibc/sysdeps/powerpc/powerpc64/power8
Alan Modra 174935af03 PowerPC64 power8 strncpy cfi fixes
cfi info for stack adjust needs to be on the insn doing the adjust.
cfi describing register saves can be anywhere after the save insn but
before the reg is altered.  Fewer locations with cfi result in smaller
cfi programs and possibly slightly faster exception handling.  Thus
the LR cfi_offset move.

The idea behind ajusting sp after restoring regs is to break a
register dependency chain, in this case not be using r1 immediately
after it is modified.

The missing LR cfi_restore meant that code after the blr,
unaligned_lt_16 and other labels, would have cfi that said LR was at
cfa+16, but that code is reached without LR being saved.

	* sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
	Adjust stack after restoring regs.  Add missing LR cfi_restore.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2017-10-23 07:46:58 +10:30
..
fpu Do not wrap expf and exp2f 2017-10-02 14:38:54 +01:00
multiarch
Implies
Makefile powerpc: strcasestr optmization for power8 2016-04-22 19:23:13 +05:30
memchr.S powerpc: Optimize memchr for power8 2017-06-21 10:55:12 +05:30
memcmp.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
memrchr.S powerpc: Fix IFUNC for memrchr 2017-10-06 10:04:52 +05:30
memset.S powerpc: Avoid misaligned stores in memset 2017-09-19 13:55:49 +05:30
stpcpy.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpncpy.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasestr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasestr.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strchr.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strchrnul.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcmp.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strcpy.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strcspn.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen.S powerpc: Clean up strlen and strnlen for power8 2017-07-03 10:46:13 +05:30
strncase.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncmp.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strncpy.S PowerPC64 power8 strncpy cfi fixes 2017-10-23 07:46:58 +10:30
strnlen.S powerpc: Clean up strlen and strnlen for power8 2017-07-03 10:46:13 +05:30
strrchr.S powerpc: refactor strrchr IFUNC 2017-06-23 11:24:30 +05:30
strspn.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30