diff mbox

Fix setcontext return value on hppa

Message ID 0C0F1B07-95A6-4BFB-BA34-352FFC1AF439@bell.net
State New, archived
Headers show

Commit Message

John David Anglin May 14, 2016, 5:35 p.m. UTC
The attached change fixes the value returned by setcontext on hppa.  This fixes failure of
stdlib/tst-setcontext3.

Please install if okay.

Thanks,
Dave
--
John David Anglin	dave.anglin@bell.net
2016-05-14  John David Anglin  <danglin@gcc.gnu.org>

	[Bz 18124]
	* sysdeps/unix/sysv/linux/hppa/setcontext.S: Return 0.
diff mbox

Patch

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