From patchwork Fri Feb 14 16:10:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. Murphy" X-Patchwork-Id: 1238154 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-109743-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=Puy0N39L; 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 48Jz0V2ZQzz9sV2 for ; Sat, 15 Feb 2020 03:11:54 +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:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=MuUMk9IOedMG2T2rv+8GfZJvDIgoAkY4s7kdHtxxdqP6lVenItxP2 cLYHZWLyCEHT2Fu7OBeRyBBCpCf3QlK51++LIx10ADOPYGQNRf3amRWw9CJazIdd DdwKkdrwun/TKpfqBA+jq0dzC2PP9N3TQwB6cu99/7fk0B/RMbKlzk= 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-transfer-encoding; s=default; bh=8pbxj0KW410skWrfaeMz8NtO+RQ=; b=Puy0N39L6pzk2OmcHAZlWte3aRmR elrjznDG8WrxdeXE41HoJDn4ddSsLr08MDVrGP6ur3ENFePXNrmjpo5J64dGwg39 UjBwkt4a0MVpvXy2kSKocv5IODhfnETXHTPKoWqJEA93/3ER+zLjB77mWUOC0IZc xj9cS5qiRA0odG8= Received: (qmail 62996 invoked by alias); 14 Feb 2020 16:11:05 -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 62909 invoked by uid 89); 14 Feb 2020 16:11:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=f X-HELO: mx0a-001b2d01.pphosted.com From: "Paul E. Murphy" To: libc-alpha@sourceware.org Subject: [PATCH 6/7] ldbl-128ibm: Let long double files have specific compiler flags Date: Fri, 14 Feb 2020 10:10:50 -0600 Message-Id: <20200214161051.32579-7-murphyp@linux.vnet.ibm.com> In-Reply-To: <20200214161051.32579-1-murphyp@linux.vnet.ibm.com> References: <20200214161051.32579-1-murphyp@linux.vnet.ibm.com> MIME-Version: 1.0 From: Tulio Magno Quites Machado Filho Soon, powerpc64le will need to provide extra compiler flags to the long double files in order to continue to build using the IBM 128-bit extended floating point type as long double. --- sysdeps/ieee754/ldbl-128ibm/Makefile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/sysdeps/ieee754/ldbl-128ibm/Makefile b/sysdeps/ieee754/ldbl-128ibm/Makefile index bdba6cc6b5..c38d4f6ac2 100644 --- a/sysdeps/ieee754/ldbl-128ibm/Makefile +++ b/sysdeps/ieee754/ldbl-128ibm/Makefile @@ -9,8 +9,24 @@ tests += tst-strtold-ldbl-128ibm $(objpfx)tst-strtold-ldbl-128ibm: $(libm) endif +ldbl-tests = test-fmodl-ldbl-128ibm test-remainderl-ldbl-128ibm \ + test-remquol-ldbl-128ibm test-canonical-ldbl-128ibm \ + test-totalorderl-ldbl-128ibm + ifeq ($(subdir),math) -tests += test-fmodl-ldbl-128ibm test-remainderl-ldbl-128ibm \ - test-remquol-ldbl-128ibm test-canonical-ldbl-128ibm \ - test-totalorderl-ldbl-128ibm +tests += $(ldbl-tests) endif + +# Long double files may need extra CFLAGS. +ldbl-128ibm-routines = s_nexttoward s_nexttowardf \ + $(type-ldouble-routines) \ + $(subst F,$(type-ldouble-suffix),$(libm-compat-calls)) \ + $(subst F,$(type-ldouble-suffix),$(libm-calls)) \ + $(subst F,$(type-ldouble-suffix),$(calls)) \ + $(foreach f,$(libm-narrow-fns), \ + $(subst F,$(f), \ + $(libm-narrow-types-ldouble-yes))) +$(foreach suf,$(all-object-suffixes), \ + $(foreach r,$(ldbl-128ibm-routines) $(ldbl-tests), \ + $(objpfx)$(r)$(suf))): \ + CFLAGS += $(type-ldouble-CFLAGS)