From patchwork Sat May 14 17:35:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 12254 Received: (qmail 22169 invoked by alias); 14 May 2016 17:35:53 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 22152 invoked by uid 89); 14 May 2016 17:35:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=Hx-languages-length:746, Hx-spam-relays-external:sk:2016051, H*RU:sk:2016051, H*r:sk:2016051 X-HELO: mtlfep02.bell.net From: John David Anglin Mime-Version: 1.0 (Apple Message framework v1085) Date: Sat, 14 May 2016 13:35:39 -0400 Subject: [PATCH] Fix setcontext return value on hppa Cc: Carlos O'Donell , Mike Frysinger To: GNU C Library Message-Id: <0C0F1B07-95A6-4BFB-BA34-352FFC1AF439@bell.net> X-Opwv-CommTouchExtSvcRefID: str=0001.0A020201.573761EC.0091, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 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 [Bz 18124] * sysdeps/unix/sysv/linux/hppa/setcontext.S: Return 0. 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: