diff options
author | Michael Meissner <meissner@linux.ibm.com> | 2021-04-05 13:30:40 -0400 |
---|---|---|
committer | Michael Meissner <meissner@linux.ibm.com> | 2021-04-05 13:33:16 -0400 |
commit | f1d012911bd103e9701ed378f32928a3cbcf028a (patch) | |
tree | 449ebdf0d7c327b5a9a3bf5a75049b78552460e6 | |
parent | dd6f588a7b8878d677af51ff4d1c1e3f9f6f40db (diff) | |
download | gcc-f1d012911bd103e9701ed378f32928a3cbcf028a.zip gcc-f1d012911bd103e9701ed378f32928a3cbcf028a.tar.gz gcc-f1d012911bd103e9701ed378f32928a3cbcf028a.tar.bz2 |
Honor --disable-decimal-float on PowerPC Decimal/Float128 conversions
This patch fixes the problem that the Decimal <-> Float128 conversions
were built even if the user configured GCC with --disable-decimal-float.
libgcc/
2021-04-05 Florian Weimer <fweimer@redhat.com>
* config/rs6000/t-float128 (fp128_ppc_funcs): Add decimal floating
point functions for $(decimal_float) only.
Co-Authored-By: Michael Meissner <meissner@linux.ibm.com>
-rw-r--r-- | libgcc/config/rs6000/t-float128 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libgcc/config/rs6000/t-float128 b/libgcc/config/rs6000/t-float128 index 8b089d4..d745f0d 100644 --- a/libgcc/config/rs6000/t-float128 +++ b/libgcc/config/rs6000/t-float128 @@ -33,8 +33,11 @@ ibm128_dec_funcs = _tf_to_sd _tf_to_dd _tf_to_td \ # New functions for software emulation fp128_ppc_funcs = floattikf floatuntikf fixkfti fixunskfti \ extendkftf2-sw trunctfkf2-sw \ - sfp-exceptions _mulkc3 _divkc3 _powikf2 \ - $(fp128_dec_funcs) + sfp-exceptions _mulkc3 _divkc3 _powikf2 + +ifeq ($(decimal_float),yes) +fp128_ppc_funcs += $(fp128_dec_funcs) +endif fp128_ppc_src = $(addprefix $(srcdir)/config/rs6000/,$(addsuffix \ .c,$(fp128_ppc_funcs))) |