Fix libgcc build with --disable-decimal-float on s390
Libgcc build on s390 no longer fails when decimal float support is disabled.
This commit resolves a regression in the s390 libgcc build that occurred when configured with --disable-decimal-float. The build failed because conversion routines for _Float16 to decimal float were unconditionally added, requiring decimal float support. This change ensures these routines are only included when decimal float is enabled, fixing the build issue introduced by a previous patch adding HF mode support.
In Details
When GCC is configured with --disable-decimal-float, the libgcc build on the s390 target fails. This is due to config/s390/t-float16 unconditionally adding routines (_dpd_ files) for conversions between _Float16 and decimal float. These routines require decimal float support, thus breaking the build when it's disabled. The fix conditionally adds these files only when decimal_float is enabled, resolving PR128472.
- libgcc
- The GCC runtime library, which provides essential functions used by compiled C, C++, and other languages, such as exception handling, floating-point support, and memory manipulation.
- _Float16
- A half-precision floating-point type, typically 16 bits, standardized in C99 and IEEE 754.
- decimal float
- A floating-point representation that uses a decimal representation (e.g., base-10) instead of a binary representation (e.g., base-2). This can improve precision for financial calculations but is less common than binary floating-point.
- s390
- IBM's mainframe system architecture, for which GCC provides support.