From patchwork Fri Feb 14 16:10:49 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: 38068 X-Patchwork-Delegate: tuliom@linux.vnet.ibm.com Received: (qmail 63092 invoked by alias); 14 Feb 2020 16:11:06 -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 62970 invoked by uid 89); 14 Feb 2020 16:11:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.3 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=HX-Languages-Length:1576, tack X-HELO: mx0a-001b2d01.pphosted.com From: "Paul E. Murphy" To: libc-alpha@sourceware.org Subject: [PATCH 5/7] ldbl-128ibm-compat: enforce ibm128 on compat tests Date: Fri, 14 Feb 2020 10:10:49 -0600 Message-Id: <20200214161051.32579-6-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 For lack of a more comprehensive solution, tack on the ibm128 ABI compiler options for the totalorder{,mag}l compat tests which exist prior to enabling this feature. Reviewed-by: Tulio Magno Quites Machado Filho --- sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile index e40ae08469..af8027cf0e 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile @@ -270,6 +270,7 @@ tests-internal += tst-ibm128-error tst-ieee128-error tests-internal += tst-ibm128-efgcvt tst-ieee128-efgcvt $(objpfx)tst-ieee128-efgcvt: gnulib-tests += $(f128-loader-link) +$(objpfx)tst-ldbl-efgcvt: gnulib-tests += $(f128-loader-link) $(objpfx)tst-ibm128-%.c: tst-ldbl-%.c cp $< $@ @@ -318,6 +319,15 @@ CFLAGS-test-strfrom-ibm128.c += -mabi=ibmlongdouble -Wno-psabi $(objpfx)test-strfrom-ieee128: gnulib-tests += $(f128-loader-link) endif +ifeq ($(subdir),math) +# The totalorder{,mag} compatibility tests were added prior to this +# support. Thus, they can only correctly be used with ibm128. +CFLAGS-test-ldouble-compat_totalorder.c += -mabi=ibmlongdouble +CFLAGS-test-ldouble-compat_totalordermag.c += -mabi=ibmlongdouble +CFLAGS-test-ildouble-compat_totalorder.c += -mabi=ibmlongdouble +CFLAGS-test-ildouble-compat_totalordermag.c += -mabi=ibmlongdouble +endif + # Add IEEE binary128 files as make targets. routines += $(foreach r,$(ldbl-extra-routines),ieee128-$(r))