From patchwork Tue Apr 1 03:46:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 364 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id F32323601A2 for ; Mon, 31 Mar 2014 20:46:26 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14307373) id A2BC96225A488; Mon, 31 Mar 2014 20:46:26 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 81B256225A46E for ; Mon, 31 Mar 2014 20:46:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=aK2KSxoMArGLf0Hce3MsICLmNZVbR WFJONAEIZSNVVFudfL9ZPAYk86wiICfkiK+06hsphGraikqiaSJZaLFbAhCs3Jm9 kwnaal24D4iP+dkdUzTEFe4kHDYuLYC5CyCW08xPl6k4vV1Wc+fm4jrjxYG6WX7y 2K5MsgdaBI/TNI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=5w3oovToV+Rca6R8EuHPVqacCvE=; b=sHJ rH+A2tjws7aL9rAxLWqnDkI+wxZo6ZTZSqSfzoVBxNhv4967mkMNUC+LDHFOWCc4 WkdYowczXw8OiJJffyXnreCnV5t39MBX2M6W/5SUPmmI7/U4Ife5u6+FRq7mrWWP fRCYchrMsz+g68P737+SrOf3XKtMu25HiCaiqjcQ= Received: (qmail 25294 invoked by alias); 1 Apr 2014 03:46:23 -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 25285 invoked by uid 89); 1 Apr 2014 03:46:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pb0-f54.google.com X-Received: by 10.68.60.225 with SMTP id k1mr28815950pbr.58.1396323978307; Mon, 31 Mar 2014 20:46:18 -0700 (PDT) Date: Tue, 1 Apr 2014 14:16:12 +1030 From: Alan Modra To: libc-alpha@sourceware.org Subject: Fix s_copysign stack temp for PowerPC64 ELFv2 Message-ID: <20140401034612.GY18201@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-DH-Original-To: glibc@patchwork.siddhesh.in Committed as obvious. ELFv2 doesn't require a parameter save area on most calls, so use the stack redzone area for stack temps. [BZ #16786] * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack. diff --git a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S index 51681aa..49c793d 100644 --- a/sysdeps/powerpc/powerpc64/fpu/s_copysign.S +++ b/sysdeps/powerpc/powerpc64/fpu/s_copysign.S @@ -27,11 +27,11 @@ ENTRY(__copysign) /* double [f1] copysign (double [f1] x, double [f2] y); copysign(x,y) returns a value with the magnitude of x and with the sign bit of y. */ - stfd fp2,56(r1) + stfd fp2,-8(r1) nop nop nop - ld r3,56(r1) + ld r3,-8(r1) cmpdi r3,0 blt L(0) fabs fp1,fp1