IA MCU psABI support: changes to libraries
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 30 Jun 2015 16:42:07 +0000 (16:42 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 30 Jun 2015 16:42:07 +0000 (09:42 -0700)
Patch in the bottom adds support of IA MCU psABI to libgcc (enables
soft-fp) and libdecnumber (enables it for IA MCU).

config/

* dfp.m4 (enable_decimal_float): Also set to yes for
i?86*-*-elfiamcu target.

gcc/

* configure: Regenerated.

libdecnumber/

* configure: Regenerated.

libgcc/

* config.host: Support i[34567]86-*-elfiamcu target.
* config/t-softfp-sfdftf: New file.
* config/i386/32/t-iamcu: Likewise.
* configure: Regenerated.

From-SVN: r225198

config/ChangeLog
config/dfp.m4
gcc/ChangeLog
gcc/configure
libdecnumber/ChangeLog
libdecnumber/configure
libgcc/ChangeLog
libgcc/config.host
libgcc/config/i386/32/t-iamcu [new file with mode: 0644]
libgcc/config/t-softfp-sfdftf [new file with mode: 0644]
libgcc/configure

index 8d55966bca5eaeb6b37c0caa4502879436e51ec5..843ad7261e5503087b921df30c5cfbeac2742f64 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * dfp.m4 (enable_decimal_float): Also set to yes for
+       i?86*-*-elfiamcu target.
+
 2015-05-27  Jason Merrill  <jason@redhat.com>
 
        PR bootstrap/66304
index 48683f0f97ba5792996182c1559f48d8441d2fcd..5b29089cec50a529413429bd974d4c999a176ab7 100644 (file)
@@ -21,7 +21,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
 [
   case $1 in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes
index bd460912172bdde6a44cad91cfc74d416ead8143..c027d8e34f047711c74e34f441de925adabf50ba 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure: Regenerated.
+
 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config.gcc: Support i[34567]86-*-elfiamcu target.
index 0d5c71a639b2c18887689a87ab745d1f0ffc5a27..50d7037c37ead98d9abc00d7f22e4aa04c2c1f53 100755 (executable)
@@ -7317,7 +7317,7 @@ else
 
   case $target in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes
index 15e9113feba3bafe46150839ee66b53341f6b61e..2a65d8e790f3d0f3be75c7aebfadfcdb0fcc3759 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure: Regenerated.
+
 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
 
        * aclocal.m4: Regenerated with automake-1.11.6.
index 2720f46ff7f2aaeb27d9349e5af434c72ea86466..964837d28a7651524a93af7f8ee454cdf7ecaaca 100755 (executable)
@@ -4614,7 +4614,7 @@ else
 
   case $target in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes
index 956038854ec3668e6e40b493096fddfa4dc1c3d7..72c8c7afbb473ba67f213f793688f62bfc6ae7e3 100644 (file)
@@ -1,3 +1,10 @@
+2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config.host: Support i[34567]86-*-elfiamcu target.
+       * config/t-softfp-sfdftf: New file.
+       * config/i386/32/t-iamcu: Likewise.
+       * configure: Regenerated.
+
 2015-06-23  James Lemke  <jwlemke@codesourcery.com>
 
        libgcc/config/arm/
index 46666df87daebae03ed4dc14c294da4ef10107e7..3a2c75db45817bc861a195e845de0d3b864d3bee 100644 (file)
@@ -562,6 +562,9 @@ x86_64-*-darwin*)
        tm_file="$tm_file i386/darwin-lib.h"
        extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
        ;;
+i[34567]86-*-elfiamcu)
+       tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/32/t-iamcu i386/t-softfp t-softfp t-dfprules"
+       ;;
 i[34567]86-*-elf*)
        tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
        ;;
diff --git a/libgcc/config/i386/32/t-iamcu b/libgcc/config/i386/32/t-iamcu
new file mode 100644 (file)
index 0000000..7595cde
--- /dev/null
@@ -0,0 +1 @@
+HOST_LIBGCC2_CFLAGS += -mlong-double-80
diff --git a/libgcc/config/t-softfp-sfdftf b/libgcc/config/t-softfp-sfdftf
new file mode 100644 (file)
index 0000000..ed71d21
--- /dev/null
@@ -0,0 +1,5 @@
+softfp_float_modes := sf df tf
+softfp_int_modes := si di
+softfp_extensions := sfdf sftf dftf xftf
+softfp_truncations := dfsf tfsf tfdf tfxf
+softfp_exclude_libgcc2 := n
index ce66d1dd3126b320ccc1339f75e8e652961ab0e6..e22cbcb872a48424363b74d544463fe1b103b0f7 100644 (file)
@@ -4436,7 +4436,7 @@ else
 
   case $host in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes