From patchwork Mon Sep 4 16:28:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 809763 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-84171-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="HyULYLMj"; 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 3xmFff39w2z9t32 for ; Tue, 5 Sep 2017 02:29:14 +1000 (AEST) 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=REU2X+pJo5aeAheh7cFXRsg247Yrm LcMihDr9eVMo31lisoDMbiuxuOA8d+ka5OKH26f6iioHQGhpnjqqMR1LiJP7HzLQ rTqRTnjDP6QOutluLKNLlqjOAkiZoGJO8X2IgIUFxDdRuSmCHjCuu3+rEs6wAiS+ vwPekHD3PbB9fg= 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=yiFuhxBzwuCqZfledHDg+lZQX90=; b=HyU LYLMjlU9hwhCg9QUljjBZLZ5+Op4GktAhGnAZDBOkX8lDO+jwZ36Id9PU9dxhiwH r+UFEV495WzJ+zes8Mp4NjA4vEUjBZ4u7o+we7X/eHFKkial6gehlMKPQlXaxPfT Y9kGonM8ajdsqW5ouyFBksP7vn60cDFK+rBn3q/A= Received: (qmail 97255 invoked by alias); 4 Sep 2017 16:29:08 -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 97017 invoked by uid 89); 4 Sep 2017 16:29:07 -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: Mon, 4 Sep 2017 16:28:54 +0000 From: Joseph Myers To: Subject: Fix bits/math-finite.h exp10 condition (bug 22082) [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) bits/math-finite.h handles exp10 if __USE_GNU. It should use the condition __GLIBC_USE (IEC_60559_FUNCS_EXT), as in bits/mathcalls.h. This patch fixes the condition. Tested for x86_64. Committed. 2017-09-04 Joseph Myers [BZ #22082] * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU]. diff --git a/math/bits/math-finite.h b/math/bits/math-finite.h index 8113db2..98dbe55 100644 --- a/math/bits/math-finite.h +++ b/math/bits/math-finite.h @@ -67,7 +67,7 @@ __MATH_REDIRCALL (cosh, , (_Mdouble_)); /* exp. */ __MATH_REDIRCALL (exp, , (_Mdouble_)); -#ifdef __USE_GNU +#if __GLIBC_USE (IEC_60559_FUNCS_EXT) /* exp10. */ __MATH_REDIRCALL (exp10, , (_Mdouble_)); #endif