aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2020-02-07 14:06:53 -0600
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2020-02-28 08:20:02 -0600
commit77d5bddd8f42c81f74994439a354d53c7089b6ad (patch)
treee58f4c994c240b10ddc95a554fa75b5d424737bf /sysdeps
parentldbl-128ibm-compat: Provide nexttoward functions (diff)
downloadglibc-77d5bddd8f42c81f74994439a354d53c7089b6ad.tar.gz
glibc-77d5bddd8f42c81f74994439a354d53c7089b6ad.tar.bz2
glibc-77d5bddd8f42c81f74994439a354d53c7089b6ad.zip
ldbl-128ibm-compat: enforce ibm128 on compat tests
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/ieee754/ldbl-128ibm-compat/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
index e40ae08469..d5c3655e69 100644
--- a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
+++ b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
@@ -318,6 +318,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))