public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work044)] Honor --disable-decimal-float on PowerPC Decimal/Float128 conversions
@ 2021-04-01 19:56 Michael Meissner
  0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2021-04-01 19:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:62e948a3e99bd5ec7d2ba9e51f0599929928949b

commit 62e948a3e99bd5ec7d2ba9e51f0599929928949b
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Apr 1 15:55:28 2021 -0400

    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-01  Florian Weimer  <fweimer@redhat.com>
                Michael Meissner  <meissner@linux.ibm.com>
            * config/rs6000/t-float128 (fp128_ppc_funcs): Add decimal floating
            point functions for $(decimal_float) only.

Diff:
---
 libgcc/config/rs6000/t-float128 | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libgcc/config/rs6000/t-float128 b/libgcc/config/rs6000/t-float128
index 8b089d4433c..d745f0d82e1 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)))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-01 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 19:56 [gcc(refs/users/meissner/heads/work044)] Honor --disable-decimal-float on PowerPC Decimal/Float128 conversions Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).