Fix r358688 -- Remember to actually save r3 before processing.

Crash was noticed by pkubaj building gcc9.

Apparently non dword-aligned char pointers are somewhat rare in the wild.

Reported by:	pkubaj
Sponsored by:	Tag1 Consulting, Inc.
This commit is contained in:
Brandon Bergren 2020-03-11 23:34:44 +00:00
parent d1105e9441
commit db7f521db7

View File

@ -58,8 +58,8 @@ ENTRY(FN_NAME)
andi. %r7, %r4, ALIGN_MASK
cmpd %r8, %r7
mr %r7, %r5
bne .Lcopy_remaining_fix_index_byte
mr %r8, %r3 /* save dst */
bne .Lcopy_remaining_fix_index_byte
/* align src */
.Lalignment_loop: