In <https://gcc.gnu.org/ml/gcc-bugs/2016-08/msg03233.html>, Nick reported i386-elf and ia64-elf failing to build because of float128_type_node being NULL, but being used by the back end for __float128. The global float128_type_node is only available conditionally, if target hooks indicate TFmode is not only available as a scalar mode and of the right format, but also supported in libgcc. The back-end support, however, expects the type always to be available for __float128 even if the libgcc support is missing. Although a target-specific node could be restored in the case where libgcc support is missing, it seems better to address the missing libgcc support. Thus, this patch enables TFmode soft-fp in libgcc globally for all x86 targets - the only special cases needed being for targets that use soft-fp for SFmode and DFmode, one of which already had the support for TFmode as well (so I based the i[34567]86-*-rtems* configuration on that present for i[34567]86-*-elfiamcu). The i386 implementation of TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P is then removed as no longer needed. I can provide such a patch for ia64 if useful, but am not in a position to test it (and while I'm reasonably confident that enabling this support would be right for ia64-elf and ia64-freebsd, I've no real idea if enabling libgcc support for TFmode, with or without also enabling it for XFmode, would be safe for ia64-vms). Bootstrapped with no regressions on x86_64-pc-linux-gnu. gcc: * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p) (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove. * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise. * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise. * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise. * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise. * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise. * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise. * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise. * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise. libgcc: * config.host (i[34567]86-*-* | x86_64-*-*): Enable TFmode soft-fp where not already enabled. From-SVN: r239775
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| config | Loading commit data... | |
| soft-fp | Loading commit data... | |
| ChangeLog | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| config.host | Loading commit data... | |
| config.in | Loading commit data... | |
| configure | Loading commit data... | |
| configure.ac | Loading commit data... | |
| crtstuff.c | Loading commit data... | |
| dfp-bit.c | Loading commit data... | |
| dfp-bit.h | Loading commit data... | |
| divmod.c | Loading commit data... | |
| empty.mk | Loading commit data... | |
| emutls.c | Loading commit data... | |
| enable-execute-stack-empty.c | Loading commit data... | |
| enable-execute-stack-mprotect.c | Loading commit data... | |
| find-symver.awk | Loading commit data... | |
| fixed-bit.c | Loading commit data... | |
| fixed-bit.h | Loading commit data... | |
| fixed-obj.mk | Loading commit data... | |
| floatunsidf.c | Loading commit data... | |
| floatunsisf.c | Loading commit data... | |
| floatunsitf.c | Loading commit data... | |
| floatunsixf.c | Loading commit data... | |
| fp-bit.c | Loading commit data... | |
| fp-bit.h | Loading commit data... | |
| gbl-ctors.h | Loading commit data... | |
| gen-fixed.sh | Loading commit data... | |
| generic-morestack-thread.c | Loading commit data... | |
| generic-morestack.c | Loading commit data... | |
| generic-morestack.h | Loading commit data... | |
| gstdint.h | Loading commit data... | |
| gthr-posix.h | Loading commit data... | |
| gthr-single.h | Loading commit data... | |
| gthr.h | Loading commit data... | |
| libgcc-std.ver.in | Loading commit data... | |
| libgcc2.c | Loading commit data... | |
| libgcc2.h | Loading commit data... | |
| libgcov-driver-system.c | Loading commit data... | |
| libgcov-driver.c | Loading commit data... | |
| libgcov-interface.c | Loading commit data... | |
| libgcov-merge.c | Loading commit data... | |
| libgcov-profiler.c | Loading commit data... | |
| libgcov-util.c | Loading commit data... | |
| libgcov.h | Loading commit data... | |
| memcmp.c | Loading commit data... | |
| memcpy.c | Loading commit data... | |
| memmove.c | Loading commit data... | |
| memset.c | Loading commit data... | |
| mkheader.sh | Loading commit data... | |
| mkmap-flat.awk | Loading commit data... | |
| mkmap-symver.awk | Loading commit data... | |
| offloadstuff.c | Loading commit data... | |
| shared-object.mk | Loading commit data... | |
| siditi-object.mk | Loading commit data... | |
| static-object.mk | Loading commit data... | |
| sync.c | Loading commit data... | |
| udivmod.c | Loading commit data... | |
| udivmodsi4.c | Loading commit data... | |
| unwind-arm-common.inc | Loading commit data... | |
| unwind-c.c | Loading commit data... | |
| unwind-compat.c | Loading commit data... | |
| unwind-compat.h | Loading commit data... | |
| unwind-dw2-fde-compat.c | Loading commit data... | |
| unwind-dw2-fde-dip.c | Loading commit data... | |
| unwind-dw2-fde.c | Loading commit data... | |
| unwind-dw2-fde.h | Loading commit data... | |
| unwind-dw2.c | Loading commit data... | |
| unwind-dw2.h | Loading commit data... | |
| unwind-generic.h | Loading commit data... | |
| unwind-pe.h | Loading commit data... | |
| unwind-seh.c | Loading commit data... | |
| unwind-sjlj.c | Loading commit data... | |
| unwind.inc | Loading commit data... | |
| vtv_end.c | Loading commit data... | |
| vtv_end_preinit.c | Loading commit data... | |
| vtv_start.c | Loading commit data... | |
| vtv_start_preinit.c | Loading commit data... |