diff mbox

[committed] Exit __setcontext with value 0

Message ID AAF18613-442E-4F08-8A02-DB19F32CB9FC@bell.net
State New
Headers show

Commit Message

John David Anglin July 16, 2017, 5:17 p.m. UTC
Fixes stdlib/tst-setcontext1.

Dave
--
John David Anglin	dave.anglin@bell.net
2017-07-16  John David Anglin  <danglin@gcc.gnu.org>

	* sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Return 0.
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/hppa/setcontext.S b/sysdeps/unix/sysv/linux/hppa/setcontext.S
index 3f4da7938f..92cb204f8d 100644
--- a/sysdeps/unix/sysv/linux/hppa/setcontext.S
+++ b/sysdeps/unix/sysv/linux/hppa/setcontext.S
@@ -141,7 +144,7 @@  ENTRY(__setcontext)
 
 	/* No further context available. Exit now.  */
 	bl	HIDDEN_JUMPTARGET(exit), %r2
-	ldi	-1, %r26
+	ldi	0, %r26
 
 
 .Lerror: