ldbl-128ibm: Let long double files have specific compiler flags

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.
This commit is contained in:
Tulio Magno Quites Machado Filho 2018-02-15 15:44:47 -02:00 committed by Paul E. Murphy
parent 0059122aa0
commit d2b2acefa6

View File

@ -9,8 +9,24 @@ tests += tst-strtold-ldbl-128ibm
$(objpfx)tst-strtold-ldbl-128ibm: $(libm) $(objpfx)tst-strtold-ldbl-128ibm: $(libm)
endif 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) ifeq ($(subdir),math)
tests += test-fmodl-ldbl-128ibm test-remainderl-ldbl-128ibm \ tests += $(ldbl-tests)
test-remquol-ldbl-128ibm test-canonical-ldbl-128ibm \
test-totalorderl-ldbl-128ibm
endif 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)