Merge "[mips64] Call __memset_chk_fail correctly for mips64."

This commit is contained in:
Treehugger Robot 2016-04-28 17:18:01 +00:00 committed by Gerrit Code Review
commit 488f5fc6a4

View file

@ -209,11 +209,14 @@ LEAF(__memset_chk,0)
LEAF(__memset_chk) LEAF(__memset_chk)
#endif #endif
.set noreorder .set noreorder
bgtu a2, a3, __memset_chk_fail sltu t2, a3, a2
la t9, __memset_chk_fail beq t2, zero, memset
.set reorder nop
.cpsetup t9, t8, __memset_chk
// Fall through to memset... LA t9, __memset_chk_fail
jr t9
nop
.set reorder
END(__memset_chk) END(__memset_chk)
#ifdef __ANDROID__ #ifdef __ANDROID__