summaryrefslogtreecommitdiffstats
path: root/package/gcc/5.5.0/940-uclinux-enable-threads.patch
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2017-10-15 23:57:35 +0200
committerPeter Korsgaard <peter@korsgaard.com>2017-10-17 22:40:42 +0200
commit1960ad837b10fcad2fe2e08d9d6537859b02d1f1 (patch)
tree07566f0400152ba1cc11ff8b6c82656bdd765680 /package/gcc/5.5.0/940-uclinux-enable-threads.patch
parent535cc2f03ea421b70fe81f3e5c76c805de16f8e4 (diff)
downloadbuildroot-1960ad837b10fcad2fe2e08d9d6537859b02d1f1.tar.gz
buildroot-1960ad837b10fcad2fe2e08d9d6537859b02d1f1.zip
package/gcc: bump to 5.5.0
Remove xtensa patches included in this release: 872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch 873-xtensa-fix-_Unwind_GetCFA.patch 876-xtensa-Fix-PR-target-78603.patch 877-xtensa-fix-PR-target-82181.patch Remove upstream patch: 942-asan-fix-missing-include-signal-h.patch Remove backported patches for glibc >= 2.26 943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch 944-sanitizer-linux.patch Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc/5.5.0/940-uclinux-enable-threads.patch')
-rw-r--r--package/gcc/5.5.0/940-uclinux-enable-threads.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/gcc/5.5.0/940-uclinux-enable-threads.patch b/package/gcc/5.5.0/940-uclinux-enable-threads.patch
new file mode 100644
index 0000000000..490a55b45d
--- /dev/null
+++ b/package/gcc/5.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-5.4.0.orig/gcc/config.gcc gcc-5.4.0/gcc/config.gcc
+--- gcc-5.4.0.orig/gcc/config.gcc 2015-09-10 16:17:53.000000000 +0200
++++ gcc-5.4.0/gcc/config.gcc 2016-07-01 21:26:02.772958441 +0200
+@@ -808,6 +808,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