summaryrefslogtreecommitdiffstats
path: root/package/gcc/6.5.0/940-uclinux-enable-threads.patch
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2018-12-08 16:37:35 +0100
committerPeter Korsgaard <peter@korsgaard.com>2018-12-08 20:54:47 +0100
commit7f283452c8ffb9caa0656c1691109801c2d63c26 (patch)
treed413e65abcda416ba6eec2ab41ef7d41b6b8ed7e /package/gcc/6.5.0/940-uclinux-enable-threads.patch
parent92bab9a23c4008302ad8c5634b4daa658ce3d6ba (diff)
downloadbuildroot-7f283452c8ffb9caa0656c1691109801c2d63c26.tar.gz
buildroot-7f283452c8ffb9caa0656c1691109801c2d63c26.zip
package/gcc: bump to version 6.5.0
Remove upstream patches: 0002-fix-building-on-ppc64.patch https://github.com/gcc-mirror/gcc/commit/765527ad3725c5f3e82ab2b8e5031120b409983d 0003-libsanitizer-Use-pre-computed-size.patch https://github.com/gcc-mirror/gcc/commit/61f38c64c01a15560026115a157b7021ec67bd3b 942-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch https://github.com/gcc-mirror/gcc/commit/b685411208e0aaa79190d54faf945763514706b8 943-sanitizer-linux.patch https://github.com/gcc-mirror/gcc/commit/8937b94d1a643fd9760714642296d034a45254a8 870-xtensa-fix-PR-target-82181.patch https://github.com/gcc-mirror/gcc/commit/dbbb83538168c6648b53f5e164c3a30beda6464f 871-xtensa-fix-PR-target-65416.patch https://github.com/gcc-mirror/gcc/commit/36f42654cbbc1df0e3d0040ba900c61980a8f8db 872-gcc-xtensa-fix-NAND-code-in-xtensa_expand_atomic.patch using patch https://github.com/gcc-mirror/gcc/commit/9f149a1a929c0c6c22f572b1cd651c83ac83774c Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc/6.5.0/940-uclinux-enable-threads.patch')
-rw-r--r--package/gcc/6.5.0/940-uclinux-enable-threads.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/gcc/6.5.0/940-uclinux-enable-threads.patch b/package/gcc/6.5.0/940-uclinux-enable-threads.patch
new file mode 100644
index 0000000000..5532656725
--- /dev/null
+++ b/package/gcc/6.5.0/940-uclinux-enable-threads.patch
@@ -0,0 +1,19 @@
+Enable POSIX threads for uClinux targets
+Reported upstream:
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71721
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur gcc-6.1.0.orig/gcc/config.gcc gcc-6.1.0/gcc/config.gcc
+--- gcc-6.1.0.orig/gcc/config.gcc 2016-04-11 12:14:59.000000000 +0200
++++ gcc-6.1.0/gcc/config.gcc 2016-07-02 20:04:25.732169982 +0200
+@@ -833,6 +833,9 @@
+ *-*-uclinux*)
+ extra_options="$extra_options gnu-user.opt"
+ use_gcc_stdint=wrap
++ case ${enable_threads} in
++ "" | yes | posix) thread_file='posix' ;;
++ esac
+ tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC"
+ ;;
+ *-*-rdos*)
OpenPOWER on IntegriCloud