https://gcc.gnu.org/g:cea597be358836f1134f445bbf8300fb5b84fb21

commit r17-6066-gcea597be358836f1134f445bbf8300fb5b84fb21
Author: Florian Fuchs <[email protected]>
Date:   Thu Nov 5 19:32:31 2026 +0100

    s390: Fix libgcc build with --disable-decimal-float [PR128472]
    
    When configured with --disable-decimal-float, the libgcc build fails
    because config/s390/t-float16 unconditionally adds the conversion
    routines between _Float16 and decimal float (the _dpd_ files), which
    require decimal float support. This is a regression introduced by
    r16-6682-g5d6d56d837c3db ("s390: Add HF mode support").
    
    Only add these files when decimal float is enabled.
    
    libgcc/ChangeLog:
    
            PR target/128472
            * config/s390/t-float16 (LIB2ADD): Only add the _dpd_ files when
            decimal_float is set.
    
    Signed-off-by: Florian Fuchs <[email protected]>

Diff:
---
 libgcc/config/s390/t-float16 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libgcc/config/s390/t-float16 b/libgcc/config/s390/t-float16
index 09c6a67c7e59..601cdaa575fe 100644
--- a/libgcc/config/s390/t-float16
+++ b/libgcc/config/s390/t-float16
@@ -1,3 +1,4 @@
+ifeq ($(decimal_float),yes)
 LIB2ADD += $(addprefix $(srcdir)/config/s390/, \
                _dpd_hf_to_sd.c \
                _dpd_hf_to_dd.c \
@@ -5,6 +6,7 @@ LIB2ADD += $(addprefix $(srcdir)/config/s390/, \
                _dpd_sd_to_hf.c \
                _dpd_dd_to_hf.c \
                _dpd_td_to_hf.c)
+endif
 
 softfp_extensions += hfsf hfdf hftf
 softfp_truncations += sfhf dfhf tfhf

Reply via email to