From patchwork Wed Jan 10 00:38:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 857855 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-88988-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="v+n2NOGT"; 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 3zGVWJ0QR9z9sBW for ; Wed, 10 Jan 2018 11:39:07 +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=OOp4VQYaX6HmTw9E21/U5wiuxDaLj p1jmi6fSGLio4fEXq1dS84KJMuXYuQ9ln1Uqg6PGYgiB8PO/omVarD4VQ7fxblIH +SRkNsuuR4eWNbMOjt/fGP6IVQZc5hIR9LuU83+WWCADmNgEADAPguDh1ITmfnIV pNiwXNwdv+ykd0= 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=1KbzgKFjMweBJ8TTiBAfeYik7EE=; b=v+n 2NOGT8CtfnNINloWQh8GY+PfVo3UFFgLe40ibR1tIl5J5KCkWaDVnybg4BUIv/dG 0ge4wJbGRPrPlc8sHHmZrp8OascNBq23ZSc6sdtKLCJN83hRXMZiw5qf/4jRYgGZ FA3AvzdhZf/pukz/kTRx6cTUYjUY2tbasHJ4+rBk= Received: (qmail 117022 invoked by alias); 10 Jan 2018 00:39:02 -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 117006 invoked by uid 89); 10 Jan 2018 00:39:01 -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: Wed, 10 Jan 2018 00:38:53 +0000 From: Joseph Myers To: Subject: Fix powerpc-nofpu fmaxmagl, fminmagl spurious "invalid" exception (bug 22691) [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) For soft-float powerpc, fmaxmagl and fminmagl generate spurious "invalid" exceptions for quiet NaN arguments. This is another case of the problems with fabsl inline expansion via comparisons, and so is fixed by building those functions with -fno-builtin-fabsl. Tested for powerpc (soft-float). Committed. 2018-01-10 Joseph Myers [BZ #22691] * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math] (CFLAGS-s_fmaxmagl.c): New variable. [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise. diff --git a/sysdeps/powerpc/nofpu/Makefile b/sysdeps/powerpc/nofpu/Makefile index 75b116c..463338d 100644 --- a/sysdeps/powerpc/nofpu/Makefile +++ b/sysdeps/powerpc/nofpu/Makefile @@ -47,4 +47,6 @@ 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 +CFLAGS-s_fmaxmagl.c += -fno-builtin-fabsl +CFLAGS-s_fminmagl.c += -fno-builtin-fabsl endif