summaryrefslogtreecommitdiff
path: root/packages/gcc/10.3.0/0008-libgcc-disable-split-stack-nothreads.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-04-09 23:43:12 (GMT)
committerGitHub <noreply@github.com>2021-04-09 23:43:12 (GMT)
commitd6f7b8e43a21096206e82e2caaf7c793da4e0287 (patch)
treeddbd9ac67460f6cc15d738639e04babe462d65fb /packages/gcc/10.3.0/0008-libgcc-disable-split-stack-nothreads.patch
parent2a4db99424c14e41e9352fac1d2e9b6cd5e4800a (diff)
parentcf0776ed0406a9902ea811ae079c96bb56a456a6 (diff)
Merge pull request #1481 from galak/gcc-10-3
Update to gcc release 10.3.0
Diffstat (limited to 'packages/gcc/10.3.0/0008-libgcc-disable-split-stack-nothreads.patch')
-rw-r--r--packages/gcc/10.3.0/0008-libgcc-disable-split-stack-nothreads.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/gcc/10.3.0/0008-libgcc-disable-split-stack-nothreads.patch b/packages/gcc/10.3.0/0008-libgcc-disable-split-stack-nothreads.patch
new file mode 100644
index 0000000..df91a9f
--- /dev/null
+++ b/packages/gcc/10.3.0/0008-libgcc-disable-split-stack-nothreads.patch
@@ -0,0 +1,17 @@
+disable split-stack for non-thread builds
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+---
+ libgcc/config/t-stack | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/libgcc/config/t-stack
++++ b/libgcc/config/t-stack
+@@ -1,4 +1,6 @@
+ # Makefile fragment to provide generic support for -fsplit-stack.
+ # This should be used in config.host for any host which supports
+ # -fsplit-stack.
++ifeq ($(enable_threads),yes)
+ LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
++endif