Hi! On Wed, Feb 24, 2021 at 11:12:54PM +0000, Joseph Myers wrote: > This change appears to have broken builds for powerpc in a configuration > that bootstraps a cross toolchain starting with a GCC build with no libc > available. > > Specifically, such a bootstrap build uses --disable-decimal-float among > other options (in the first GCC build before libc has been built), to > disable GCC target library code that has any dependence on libc or libc > headers - dfp-bit.c uses libc headers, without an inhibit_libc > conditional, so cannot be used in such a bootstrap configuration. Most of > the DFP code in libgcc is disabled by --disable-decimal-float, but it > seems the new conversions are not.
> The appropriate fix is not to build any of these new conversions in the > --disable-decimal-float case. (That clearly makes sense anyway, even in > the absence of the bootstrap issue.) Certainly. The other option, which we need for correctness *anyway*, is to have libgcc do the conversion without using any specific libc. Segher