summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch')
-rw-r--r--toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch b/toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch
new file mode 100644
index 000000000..5b147ae5f
--- /dev/null
+++ b/toolchain/gcc/patches/5.4.0/nios2-soft-fp.patch
@@ -0,0 +1,14 @@
+diff -Nur gcc-5.3.0.orig/libgcc/config.host gcc-5.3.0/libgcc/config.host
+--- gcc-5.3.0.orig/libgcc/config.host 2015-10-01 14:01:18.000000000 +0200
++++ gcc-5.3.0/libgcc/config.host 2016-05-30 00:20:39.299872144 +0200
+@@ -948,6 +948,10 @@
+ ;;
+ esac
+ ;;
++nios2-*-linux-uclibc*)
++ tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc t-softfp-sfdf t-softfp"
++ md_unwind_header=nios2/linux-unwind.h
++ ;;
+ nios2-*-linux*)
+ tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
+ md_unwind_header=nios2/linux-unwind.h