From: Chris Metcalf Date: Tue, 17 Jul 2012 18:35:46 +0000 (-0400) Subject: tile: exit with status zero on makecontext return with NULL uc_link X-Git-Tag: upstream/2.20~3586 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f110915184d5daebbec513edb034653eab849234;p=platform%2Fupstream%2Flinaro-glibc.git tile: exit with status zero on makecontext return with NULL uc_link --- diff --git a/ports/ChangeLog.tile b/ports/ChangeLog.tile index bd5e067..2335171 100644 --- a/ports/ChangeLog.tile +++ b/ports/ChangeLog.tile @@ -1,5 +1,8 @@ 2012-07-17 Chris Metcalf + * sysdeps/unix/sysv/linux/tile/setcontext.S: Ensure exit status is + zero if uc_link is NULL. + * sysdeps/tile/libm-test-ulps: Account for new tests. * data/c++-types-tilepro-linux-gnu.data: Move to ... diff --git a/ports/sysdeps/unix/sysv/linux/tile/setcontext.S b/ports/sysdeps/unix/sysv/linux/tile/setcontext.S index f95ad7c..587097e 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/setcontext.S +++ b/ports/sysdeps/unix/sysv/linux/tile/setcontext.S @@ -196,6 +196,9 @@ ENTRY (__startcontext) move r0, r30 jal __setcontext } -1: j HIDDEN_JUMPTARGET(exit) +1: { + movei r0, 0 + j HIDDEN_JUMPTARGET(exit) + } END (__startcontext) .hidden __startcontext