From cb78b51ca0b545a8d6b0b72a3aa108f3012de4ee Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 30 Jun 2015 16:42:07 +0000 Subject: [PATCH] IA MCU psABI support: changes to libraries 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 | 5 +++++ config/dfp.m4 | 2 +- gcc/ChangeLog | 4 ++++ gcc/configure | 2 +- libdecnumber/ChangeLog | 4 ++++ libdecnumber/configure | 2 +- libgcc/ChangeLog | 7 +++++++ libgcc/config.host | 3 +++ libgcc/config/i386/32/t-iamcu | 1 + libgcc/config/t-softfp-sfdftf | 5 +++++ libgcc/configure | 2 +- 11 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 libgcc/config/i386/32/t-iamcu create mode 100644 libgcc/config/t-softfp-sfdftf diff --git a/config/ChangeLog b/config/ChangeLog index 8d55966bca5..843ad7261e5 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2015-06-30 H.J. Lu + + * dfp.m4 (enable_decimal_float): Also set to yes for + i?86*-*-elfiamcu target. + 2015-05-27 Jason Merrill PR bootstrap/66304 diff --git a/config/dfp.m4 b/config/dfp.m4 index 48683f0f97b..5b29089cec5 100644 --- a/config/dfp.m4 +++ b/config/dfp.m4 @@ -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 diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd460912172..c027d8e34f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-06-30 H.J. Lu + + * configure: Regenerated. + 2015-06-30 H.J. Lu * config.gcc: Support i[34567]86-*-elfiamcu target. diff --git a/gcc/configure b/gcc/configure index 0d5c71a639b..50d7037c37e 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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 diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index 15e9113feba..2a65d8e790f 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,7 @@ +2015-06-30 H.J. Lu + + * configure: Regenerated. + 2015-05-13 Michael Haubenwallner * aclocal.m4: Regenerated with automake-1.11.6. diff --git a/libdecnumber/configure b/libdecnumber/configure index 2720f46ff7f..964837d28a7 100755 --- a/libdecnumber/configure +++ b/libdecnumber/configure @@ -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 diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 956038854ec..72c8c7afbb4 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,10 @@ +2015-06-30 H.J. Lu + + * 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 libgcc/config/arm/ diff --git a/libgcc/config.host b/libgcc/config.host index 46666df87da..3a2c75db458 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -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 index 00000000000..7595cdeed84 --- /dev/null +++ b/libgcc/config/i386/32/t-iamcu @@ -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 index 00000000000..ed71d2175f0 --- /dev/null +++ b/libgcc/config/t-softfp-sfdftf @@ -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 diff --git a/libgcc/configure b/libgcc/configure index ce66d1dd312..e22cbcb872a 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -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