0001-disable-split-stack-for-non-thread-builds.patch 865 B

1234567891011121314151617181920212223242526
  1. From 4f67134e0b1404fef4ea72342be8fab4c37ca8c8 Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbx@openadk.org>
  3. Date: Mon, 25 Jul 2022 00:29:55 +0200
  4. Subject: [PATCH] disable split-stack for non-thread builds
  5. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  6. [Romain: convert to git format]
  7. Signed-off-by: Romain Naour <romain.naour@smile.fr>
  8. ---
  9. libgcc/config/t-stack | 2 ++
  10. 1 file changed, 2 insertions(+)
  11. diff --git a/libgcc/config/t-stack b/libgcc/config/t-stack
  12. index cc0366b4cd8..f3f97e86d60 100644
  13. --- a/libgcc/config/t-stack
  14. +++ b/libgcc/config/t-stack
  15. @@ -1,4 +1,6 @@
  16. # Makefile fragment to provide generic support for -fsplit-stack.
  17. # This should be used in config.host for any host which supports
  18. # -fsplit-stack.
  19. +ifeq ($(enable_threads),yes)
  20. LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
  21. +endif
  22. --
  23. 2.34.3