From patchwork Wed Dec 10 18:49:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 419817 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 C9BA3140100 for ; Thu, 11 Dec 2014 05:49:14 +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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=QMA SSPe0j2IaTgW7A13/K/KkGNitwVNNk7yLqqmHns9PpE3nEP37MRJ02YUiAeOa0Ik F8LKhV9F1UiDuEoUicVPeI/81iEcc2maMWrM7gTjoCSI24tZ7cRkVZpt9t1f67Mg 96J9NYgR2/patgaiFhtqXnQSr2Ajbbzl2gNzus48= 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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=d+omqxf0W avB7CmXin5xaxWrIKE=; b=FJiD7/7GMebqTT1OaeSO2c2wAqp8vHtjHJxSK0V50 sv+Lw/acKpHnsYRX5DtGHfMkOMORwAZMUdeJBXuK1Q+BJlCiSU+D/ze7dGDRPL6Y XTTmr/Tk+y8uU/rJ0ycogct1dM6R8g5WtRXpFjcOU4XsKmhRj3Jl054pThPmnQah n4= Received: (qmail 28412 invoked by alias); 10 Dec 2014 18:49:09 -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 28398 invoked by uid 89); 10 Dec 2014 18:49:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp05.br.ibm.com Message-ID: <5488959C.3010203@linux.vnet.ibm.com> Date: Wed, 10 Dec 2014 16:49:00 -0200 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [PATCH] powerpc: Fix lgammal_r overflow warnings X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14121018-0033-0000-0000-0000013F3F7C ldbl-128ibm uses ldbl-128 e_lgammal_r implementation as is, however some constants definitions overflows for IBM long double range. This patch suppress the compiler warnings until the ldbl-128ibm implementation is fixed. Tested on powerpc64 and powerpc32 (the build itself still fails, however the lgammal objects are compiled). --- * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for constants definition. -- diff --git a/sysdeps/ieee754/ldbl-128/e_lgammal_r.c b/sysdeps/ieee754/ldbl-128/e_lgammal_r.c index 1961355..43f7019 100644 --- a/sysdeps/ieee754/ldbl-128/e_lgammal_r.c +++ b/sysdeps/ieee754/ldbl-128/e_lgammal_r.c @@ -70,12 +70,19 @@ #include #include +#include +/* ldbl-128ibm uses this file as is, however the MAXLGM and huge definition + overflows for IBM long double. This directive prevents the overflow + warnings until IBM long double version is not fixed. */ +DIAG_PUSH_NEEDS_COMMENT; +DIAG_IGNORE_NEEDS_COMMENT (4.6, "-Woverflow"); static const long double PIL = 3.1415926535897932384626433832795028841972E0L; static const long double MAXLGM = 1.0485738685148938358098967157129705071571E4928L; static const long double one = 1.0L; static const long double zero = 0.0L; static const long double huge = 1.0e4000L; +DIAG_POP_NEEDS_COMMENT; /* log gamma(x) = ( x - 0.5 ) * log(x) - x + LS2PI + 1/x P(1/x^2) 1/x <= 0.0741 (x >= 13.495...)