+2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR boostrap/36702
+ * config.host: Only include 32bit t-fprules-softfp for Darwin/x86
+ and Linux/x86. Include 64bit t-softfp-compat for Linux/x86.
+
+ * config/i386/64/t-fprules-softfp: Moved to ...
+ * config/i386/64/t-softfp-compat: This. New.
+
2008-07-02 Uros Bizjak <ubizjak@gmail.com>
* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS) [FP_EX_INVALID]:
case ${host} in
i[34567]86-*-darwin* | x86_64-*-darwin* | \
i[34567]86-*-linux* | x86_64-*-linux*)
- tmake_file="${tmake_file} i386/${host_address}/t-fprules-softfp"
+ if test "${host_address}" = 32; then
+ tmake_file="${tmake_file} i386/${host_address}/t-fprules-softfp"
+ fi
+ ;;
+esac
+
+case ${host} in
+i[34567]86-*-linux* | x86_64-*-linux*)
+ # Provide backward binary compatibility for 64bit Linux/x86.
+ if test "${host_address}" = 64; then
+ tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
+ fi
;;
esac
+++ /dev/null
-# Filter out the following TImode functions and provide backward binary
-# compatibility.
-tf-compats = getf2.c letf2.c eqtf2.c
-tf-functions := $(addprefix $(gcc_srcdir)/config/soft-fp/, $(tf-compats))
-LIB2ADD := $(filter-out $(tf-functions), $(LIB2ADD))
-LIB2ADD += $(addprefix $(srcdir)/config/i386/64/, $(tf-compats))
-
-# Replace _divtc3, _multc3 and _powitf2.
-libgcc2-tf-functions = _divtc3 _multc3 _powitf2
-LIB2FUNCS_EXCLUDE += $(libgcc2-tf-functions)
-libgcc2-tf-compats = $(addsuffix -compat.c, $(libgcc2-tf-functions))
-LIB2ADD += $(addprefix $(srcdir)/config/i386/64/, $(libgcc2-tf-compats))
--- /dev/null
+# Filter out the following TImode functions and provide backward binary
+# compatibility.
+tf-compats = getf2.c letf2.c eqtf2.c
+tf-functions := $(addprefix $(gcc_srcdir)/config/soft-fp/, $(tf-compats))
+LIB2ADD := $(filter-out $(tf-functions), $(LIB2ADD))
+LIB2ADD += $(addprefix $(srcdir)/config/i386/64/, $(tf-compats))
+
+# Replace _divtc3, _multc3 and _powitf2.
+libgcc2-tf-functions = _divtc3 _multc3 _powitf2
+LIB2FUNCS_EXCLUDE += $(libgcc2-tf-functions)
+libgcc2-tf-compats = $(addsuffix -compat.c, $(libgcc2-tf-functions))
+LIB2ADD += $(addprefix $(srcdir)/config/i386/64/, $(libgcc2-tf-compats))