summaryrefslogtreecommitdiffstats
path: root/0001-share-mingw-fset-stack-executable-with-cygwin.patch
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2020-04-01 16:59:44 -0400
committerYaakov Selkowitz <yselkowi@redhat.com>2020-04-01 16:59:44 -0400
commit58aad36b016765d2b651b9167f0a4caa6142d5f9 (patch)
treebe3a18fceb890dbe20d8257a3a3b6cc072dad890 /0001-share-mingw-fset-stack-executable-with-cygwin.patch
parent462d1befeec9662defcdb8380a79895bdbf1186a (diff)
downloadcygwin-gcc-58aad36b016765d2b651b9167f0a4caa6142d5f9.tar.gz
cygwin-gcc-58aad36b016765d2b651b9167f0a4caa6142d5f9.tar.xz
cygwin-gcc-58aad36b016765d2b651b9167f0a4caa6142d5f9.zip
cygwin-gcc 9.3.0
Diffstat (limited to '0001-share-mingw-fset-stack-executable-with-cygwin.patch')
-rw-r--r--0001-share-mingw-fset-stack-executable-with-cygwin.patch69
1 files changed, 0 insertions, 69 deletions
diff --git a/0001-share-mingw-fset-stack-executable-with-cygwin.patch b/0001-share-mingw-fset-stack-executable-with-cygwin.patch
deleted file mode 100644
index d5663b7..0000000
--- a/0001-share-mingw-fset-stack-executable-with-cygwin.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-From bb571d27350ba5e38ae1f2025dc32d826e21e48c Mon Sep 17 00:00:00 2001
-From: Jonathan Yong <10walls@gmail.com>
-Date: Wed, 28 May 2014 22:05:17 +0800
-Subject: [PATCH 01/21] share mingw fset-stack-executable with cygwin
-
----
- gcc/config/i386/cygming.opt | 4 ++++
- gcc/config/i386/cygwin.h | 4 ++++
- gcc/config/i386/mingw.opt | 4 ----
- libgcc/config.host | 3 +++
- 4 files changed, 11 insertions(+), 4 deletions(-)
-
-diff --git a/gcc/config/i386/cygming.opt b/gcc/config/i386/cygming.opt
-index c7e398f..ff63140 100644
---- a/gcc/config/i386/cygming.opt
-+++ b/gcc/config/i386/cygming.opt
-@@ -50,6 +50,10 @@ muse-libstdc-wrappers
- Target Condition({defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)})
- Compile code that relies on Cygwin DLL wrappers to support C++ operator new/delete replacement.
-
-+fset-stack-executable
-+Common Report Var(flag_setstackexecutable) Init(1) Optimization
-+For nested functions on stack executable permission is set.
-+
- posix
- Driver
-
-diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
-index 2186937..803fb6c 100644
---- a/gcc/config/i386/cygwin.h
-+++ b/gcc/config/i386/cygwin.h
-@@ -153,3 +153,7 @@ along with GCC; see the file COPYING3. If not see
- #endif
- #define LIBGCC_SONAME "cyggcc_s" LIBGCC_EH_EXTN "-1.dll"
-
-+/* Make stack executable to avoid DEP problems with trampolines. */
-+#define HAVE_ENABLE_EXECUTE_STACK
-+#undef CHECK_EXECUTE_STACK_ENABLED
-+#define CHECK_EXECUTE_STACK_ENABLED flag_setstackexecutable
-diff --git a/gcc/config/i386/mingw.opt b/gcc/config/i386/mingw.opt
-index 322b66c..a0065a6 100644
---- a/gcc/config/i386/mingw.opt
-+++ b/gcc/config/i386/mingw.opt
-@@ -28,8 +28,4 @@ Wpedantic-ms-format
- C ObjC C++ ObjC++ Var(warn_pedantic_ms_format) Init(1) Warning
- Warn about none ISO msvcrt scanf/printf width extensions.
-
--fset-stack-executable
--Common Report Var(flag_setstackexecutable) Init(1) Optimization
--For nested functions on stack executable permission is set.
--
- ; Need to retain blank line above.
-diff --git a/libgcc/config.host b/libgcc/config.host
-index 140aa22..ecaabc1 100644
---- a/libgcc/config.host
-+++ b/libgcc/config.host
-@@ -313,6 +313,9 @@ case ${host} in
- i[34567]86-*-mingw* | x86_64-*-mingw*)
- enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
- ;;
-+i[34567]86-*-cygwin* | x86_64-*-cygwin*)
-+ enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
-+ ;;
- *)
- enable_execute_stack=enable-execute-stack-empty.c;
- ;;
---
-2.4.5
-