re PR bootstrap/36702 (Bootstrap fails at revision 137369 on i686-apple-darwin9)
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 2 Jul 2008 19:31:53 +0000 (19:31 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 2 Jul 2008 19:31:53 +0000 (12:31 -0700)
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.

From-SVN: r137380

libgcc/ChangeLog
libgcc/config.host
libgcc/config/i386/64/t-fprules-softfp [deleted file]
libgcc/config/i386/64/t-softfp-compat [new file with mode: 0644]

index d8bfd54eed31be64db545ae62fc1bd9aea344b96..6779c0f7732d1d0efce035209b42a6d1a848c993 100644 (file)
@@ -1,3 +1,12 @@
+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]:
index ca07a07fadc72b103eee0f6148685af69e281b70..93d1dbfacbb1fbe074b1aa2f13a2ed7605d7914e 100644 (file)
@@ -582,6 +582,17 @@ esac
 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
diff --git a/libgcc/config/i386/64/t-fprules-softfp b/libgcc/config/i386/64/t-fprules-softfp
deleted file mode 100644 (file)
index e8cda29..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# 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))
diff --git a/libgcc/config/i386/64/t-softfp-compat b/libgcc/config/i386/64/t-softfp-compat
new file mode 100644 (file)
index 0000000..e8cda29
--- /dev/null
@@ -0,0 +1,12 @@
+# 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))