From patchwork Thu Sep 7 10:43:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 810957 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-84292-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="FDcVNsTx"; 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 3xnxsk5pHYz9t2f for ; Thu, 7 Sep 2017 20:44:42 +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:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=Kg5gH US1UzOdB4+t8m9pz39799vJDcid48peNtU0igEr0Rjj0iqJkGYbDu6tkDje/gKoO 8GM5IUU+feFA99qWkv+yhBCtJHL/1SWeKAU6XJ8wEyUfac6/Rtn9mD8wnbgoIN4Q djpkB2farFXEUgl02hfeg6jHA6RiRYbUHwg3xw= 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:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=3dqxvKZAes2 oEEJYv6yTAdXzl1k=; b=FDcVNsTxxDfn8hD6MEuP+T1Xqjj/HgBMON7Pxcij/YM VKnl6daK7XZqNfyiXVXvwXSdD0DB6+UHAFKCBpMnaw4z49z7tXYuRA2OEWDgbaP7 iubcW2SNWd2K7o8CjpsiWbHFIB8wXLsLDvCLoNgEubPurI7ZQT/qZSWYVq74BO2s = Received: (qmail 27043 invoked by alias); 7 Sep 2017 10:44:20 -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 26727 invoked by uid 89); 7 Sep 2017 10:44:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*F:D*br X-HELO: mo19.mail-out.ovh.net From: "Gabriel F. T. Gomes" To: Subject: [PATCH 3/3] powerpc64le: Disable compiler support for float128 when reusing ldbl-128 Date: Thu, 7 Sep 2017 07:43:52 -0300 Message-ID: <20170907104352.7748-4-gabriel@inconstante.eti.br> In-Reply-To: <20170907104352.7748-1-gabriel@inconstante.eti.br> References: <20170907104352.7748-1-gabriel@inconstante.eti.br> MIME-Version: 1.0 X-ClientProxiedBy: EX2.emp.local (172.16.2.2) To EX2.emp.local (172.16.2.2) X-Ovh-Tracer-Id: 2521171370572893891 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelledrfedvgdefvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecu Some files under sysdeps/ieee754/ldbl-128ibm are able to reuse the implementation in sysdeps/ieee754/ldbl-128 by defining _Float128 to long double. This relies on compiler support for _Float128 being disabled. On powerpc, such support is currently disabled by default, however, it will get enabled by default [1], requiring that this Makefile actively disable compiler support for float128 for the required files. [1] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01028.html Tested for powerpc64le with patched [1] and unpatched gcc. * sysdeps/powerpc/powerpc64le/Makefile (CFLAGS-e_expl.c) (CFLAGS-e_j0l.c, CFLAGS-e_j1l.c, CFLAGS-e_lgammal_r.c) (CFLAGS-s_cbrtl.c): New variables. --- sysdeps/powerpc/powerpc64le/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sysdeps/powerpc/powerpc64le/Makefile b/sysdeps/powerpc/powerpc64le/Makefile index 3fd9d9a715..a1d37135e5 100644 --- a/sysdeps/powerpc/powerpc64le/Makefile +++ b/sysdeps/powerpc/powerpc64le/Makefile @@ -20,6 +20,19 @@ CFLAGS-test-math-issignaling.cc += -mfloat128 CFLAGS-test-math-iszero.cc += -mfloat128 $(objpfx)test-float128% $(objpfx)test-ifloat128% $(objpfx)test-math-iszero: \ gnulib-tests += $(f128-loader-link) + +# Some files under sysdeps/ieee754/ldbl-128ibm are able to reuse the +# implementation in sysdeps/ieee754/ldbl-128 by defining _Float128 to +# long double. This relies on compiler support for _Float128 being +# disabled. On powerpc, such support used to be disabled by default, +# however, it will get enabled by default [1], requiring that this +# Makefile actively disable it for the following files. +# [1] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01028.html +CFLAGS-e_expl.c += -mno-float128 +CFLAGS-e_j0l.c += -mno-float128 +CFLAGS-e_j1l.c += -mno-float128 +CFLAGS-e_lgammal_r.c += -mno-float128 +CFLAGS-s_cbrtl.c += -mno-float128 endif # Append flags to string <-> _Float128 routines.