{"id":810957,"url":"http://patchwork.ozlabs.org/api/1.2/patches/810957/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/patch/20170907104352.7748-4-gabriel@inconstante.eti.br/","project":{"id":41,"url":"http://patchwork.ozlabs.org/api/1.2/projects/41/?format=json","name":"GNU C Library","link_name":"glibc","list_id":"libc-alpha.sourceware.org","list_email":"libc-alpha@sourceware.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170907104352.7748-4-gabriel@inconstante.eti.br>","list_archive_url":null,"date":"2017-09-07T10:43:52","name":"[3/3] powerpc64le: Disable compiler support for float128 when reusing ldbl-128","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"8c4fe1f1af315513f5a16b45ecb84ae2ecc0f76f","submitter":{"id":72317,"url":"http://patchwork.ozlabs.org/api/1.2/people/72317/?format=json","name":"Gabriel F. T. Gomes","email":"gabriel@inconstante.eti.br"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/20170907104352.7748-4-gabriel@inconstante.eti.br/mbox/","series":[{"id":1976,"url":"http://patchwork.ozlabs.org/api/1.2/series/1976/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/list/?series=1976","date":"2017-09-07T10:43:49","name":"Fixes for -mfloat128 being enabled by default on gcc for power","version":1,"mbox":"http://patchwork.ozlabs.org/series/1976/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/810957/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/810957/checks/","tags":{},"related":[],"headers":{"Return-Path":"<libc-alpha-return-84292-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84292-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"FDcVNsTx\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xnxsk5pHYz9t2f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 20:44:42 +1000 (AEST)","(qmail 27043 invoked by alias); 7 Sep 2017 10:44:20 -0000","(qmail 26727 invoked by uid 89); 7 Sep 2017 10:44:17 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-type; q=dns; s=default; b=Kg5gH\n\tUS1UzOdB4+t8m9pz39799vJDcid48peNtU0igEr0Rjj0iqJkGYbDu6tkDje/gKoO\n\t8GM5IUU+feFA99qWkv+yhBCtJHL/1SWeKAU6XJ8wEyUfac6/Rtn9mD8wnbgoIN4Q\n\tdjpkB2farFXEUgl02hfeg6jHA6RiRYbUHwg3xw=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-type; s=default; bh=3dqxvKZAes2\n\toEEJYv6yTAdXzl1k=; b=FDcVNsTxxDfn8hD6MEuP+T1Xqjj/HgBMON7Pxcij/YM\n\tVKnl6daK7XZqNfyiXVXvwXSdD0DB6+UHAFKCBpMnaw4z49z7tXYuRA2OEWDgbaP7\n\tiubcW2SNWd2K7o8CjpsiWbHFIB8wXLsLDvCLoNgEubPurI7ZQT/qZSWYVq74BO2s\n\t=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-25.2 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_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\" <gabriel@inconstante.eti.br>","To":"<libc-alpha@sourceware.org>","Subject":"[PATCH 3/3] powerpc64le: Disable compiler support for float128 when\n\treusing 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","Content-Type":"text/plain","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"},"content":"Some files under sysdeps/ieee754/ldbl-128ibm are able to reuse the\nimplementation in sysdeps/ieee754/ldbl-128 by defining _Float128 to long\ndouble.  This relies on compiler support for _Float128 being disabled.\n\nOn powerpc, such support is currently disabled by default, however, it\nwill get enabled by default [1], requiring that this Makefile actively\ndisable compiler support for float128 for the required files.\n\n[1] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01028.html\n\nTested for powerpc64le with patched [1] and unpatched gcc.\n\n\t* sysdeps/powerpc/powerpc64le/Makefile (CFLAGS-e_expl.c)\n\t(CFLAGS-e_j0l.c, CFLAGS-e_j1l.c, CFLAGS-e_lgammal_r.c)\n\t(CFLAGS-s_cbrtl.c): New variables.\n---\n sysdeps/powerpc/powerpc64le/Makefile | 13 +++++++++++++\n 1 file changed, 13 insertions(+)","diff":"diff --git a/sysdeps/powerpc/powerpc64le/Makefile b/sysdeps/powerpc/powerpc64le/Makefile\nindex 3fd9d9a715..a1d37135e5 100644\n--- a/sysdeps/powerpc/powerpc64le/Makefile\n+++ b/sysdeps/powerpc/powerpc64le/Makefile\n@@ -20,6 +20,19 @@ CFLAGS-test-math-issignaling.cc += -mfloat128\n CFLAGS-test-math-iszero.cc += -mfloat128\n $(objpfx)test-float128% $(objpfx)test-ifloat128% $(objpfx)test-math-iszero: \\\n   gnulib-tests += $(f128-loader-link)\n+\n+# Some files under sysdeps/ieee754/ldbl-128ibm are able to reuse the\n+# implementation in sysdeps/ieee754/ldbl-128 by defining _Float128 to\n+# long double.  This relies on compiler support for _Float128 being\n+# disabled.  On powerpc, such support used to be disabled by default,\n+# however, it will get enabled by default [1], requiring that this\n+# Makefile actively disable it for the following files.\n+# [1] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01028.html\n+CFLAGS-e_expl.c += -mno-float128\n+CFLAGS-e_j0l.c += -mno-float128\n+CFLAGS-e_j1l.c += -mno-float128\n+CFLAGS-e_lgammal_r.c += -mno-float128\n+CFLAGS-s_cbrtl.c += -mno-float128\n endif\n \n # Append flags to string <-> _Float128 routines.\n","prefixes":["3/3"]}