From patchwork Tue Jan 9 23:16:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 857828 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-88986-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="MmADqAZF"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 3zGSgj5F4gz9sBZ for ; Wed, 10 Jan 2018 10:16:17 +1100 (AEDT) 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=cgL4ePTEEjowJY9OTjd+q6uSJEXPt pTLu++q4zY2KPk5cBpcSMWaMflt0ALAA9K3vaHbLGipIGPAbycXja7p8qOs+x3eg XSt/KeLk8c0PZCj7wbz5u4njE5edv9cA92N/kOaOnwun1pCAEEM9ABlre7BQgGvv U2+r7rF+QUndQE= 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=/tlGWy7+7QviUBlsofC+nizHmbA=; b=MmA DqAZFhT/4k6VM4jrFTm5DI7iDJyEFP5tjBHaYj4VdLYp5BkUn8P7XWFNDYkeuQz2 egQx/7YoTUqxAyuVr3HhHOn4g+2bLoQ7lz2ILd9JNQ0XwAEkNQXwPf9C4CK6IBBc r6gyaghU5qKylLr7mT5M8VeWrOs1gpqvtq9IJkX8= Received: (qmail 76654 invoked by alias); 9 Jan 2018 23:16:11 -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 76622 invoked by uid 89); 9 Jan 2018 23:16:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Tue, 9 Jan 2018 23:16:05 +0000 From: Joseph Myers To: Subject: Fix powerpc-nofpu remainderl wrong sign of zero result (bug 22688) [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) For soft-float powerpc, the remainderl function produces zero results with the wrong sign for various inputs. This is another instance of the problem with incorrect built-in fabsl expansion, so is fixed by this patch using -fno-builtin-fabsl for this function. Tested for powerpc (soft-float). Committed. 2018-01-09 Joseph Myers [BZ #22688] * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math] (CFLAGS-e_remainderl.c): New variable. diff --git a/sysdeps/powerpc/nofpu/Makefile b/sysdeps/powerpc/nofpu/Makefile index 09ecdf1..75b116c 100644 --- a/sysdeps/powerpc/nofpu/Makefile +++ b/sysdeps/powerpc/nofpu/Makefile @@ -46,4 +46,5 @@ CFLAGS-w_j1l_compat.c += -fno-builtin-fabsl CFLAGS-e_lgammal_r.c += -fno-builtin-fabsl CFLAGS-e_log10l.c += -fno-builtin-fabsl CFLAGS-e_log2l.c += -fno-builtin-fabsl +CFLAGS-e_remainderl.c += -fno-builtin-fabsl endif