diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-05-15 04:31:14 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-05-27 12:48:11 -0700 |
commit | 820bdbf701d9dc2f610802fe9b127213602630c1 (patch) | |
tree | b6e7f528e40a5739c44c4d6e2fd1dfeed37bd394 | |
parent | 51c558b7a9c1d93afa665790eb30545261370f9f (diff) | |
download | gcc-820bdbf701d9dc2f610802fe9b127213602630c1.tar.gz |
Enable soft-fp for i[34567]86-*-elfiamcu target
Intel MCU needs soft-fp for floating point. Enable it in libgcc.
* config.host: Support i[34567]86-*-elfiamcu target.
* config/i386/32/t-iamcu: New file.
-rw-r--r-- | libgcc/config.host | 3 | ||||
-rw-r--r-- | libgcc/config/i386/32/t-iamcu | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libgcc/config.host b/libgcc/config.host index f4a74287293..e32439baa46 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -539,6 +539,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-sfdf i386/32/t-softfp i386/32/t-iamcu i386/t-softfp t-softfp" + ;; 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..0752bff4300 --- /dev/null +++ b/libgcc/config/i386/32/t-iamcu @@ -0,0 +1,6 @@ +softfp_float_modes += tf +softfp_extensions += sftf dftf xftf +softfp_truncations += tfsf tfdf tfxf +softfp_exclude_libgcc2 := n + +HOST_LIBGCC2_CFLAGS += -mlong-double-80 |