summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-greenlet/0001-cleanup-Drop-using-register-storage-class-keyword-ev.patch
blob: 2a6ddd47260fa39bd2e7c4f2bc1d31aa5a3704e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
From 74d8c5ecdc677a7a412c7f782fe8488a5d987333 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 5 Feb 2023 19:05:45 -0800
Subject: [PATCH] cleanup: Drop using 'register' storage class keyword everywhere

This has been dropped in c++17 and newer

Upstream-Status: Submitted [https://github.com/python-greenlet/greenlet/pull/347]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/greenlet/platform/switch_alpha_unix.h    | 4 ++--
 src/greenlet/platform/switch_arm32_gcc.h     | 2 +-
 src/greenlet/platform/switch_arm32_ios.h     | 2 +-
 src/greenlet/platform/switch_csky_gcc.h      | 2 +-
 src/greenlet/platform/switch_mips_unix.h     | 4 ++--
 src/greenlet/platform/switch_ppc64_aix.h     | 4 ++--
 src/greenlet/platform/switch_ppc64_linux.h   | 4 ++--
 src/greenlet/platform/switch_ppc_aix.h       | 4 ++--
 src/greenlet/platform/switch_ppc_linux.h     | 4 ++--
 src/greenlet/platform/switch_ppc_macosx.h    | 4 ++--
 src/greenlet/platform/switch_ppc_unix.h      | 4 ++--
 src/greenlet/platform/switch_s390_unix.h     | 4 ++--
 src/greenlet/platform/switch_sparc_sun_gcc.h | 4 ++--
 src/greenlet/platform/switch_x32_unix.h      | 4 ++--
 src/greenlet/platform/switch_x86_unix.h      | 2 +-
 15 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/src/greenlet/platform/switch_alpha_unix.h b/src/greenlet/platform/switch_alpha_unix.h
index 216619f..7e07abf 100644
--- a/src/greenlet/platform/switch_alpha_unix.h
+++ b/src/greenlet/platform/switch_alpha_unix.h
@@ -9,8 +9,8 @@
 static int
 slp_switch(void)
 {
-  register int ret;
-  register long *stackref, stsizediff;
+  int ret;
+  long *stackref, stsizediff;
   __asm__ volatile ("" : : : REGS_TO_SAVE);
   __asm__ volatile ("mov $30, %0" : "=r" (stackref) : );
   {
diff --git a/src/greenlet/platform/switch_arm32_gcc.h b/src/greenlet/platform/switch_arm32_gcc.h
index 035d6b9..655003a 100644
--- a/src/greenlet/platform/switch_arm32_gcc.h
+++ b/src/greenlet/platform/switch_arm32_gcc.h
@@ -56,7 +56,7 @@ __attribute__((optimize("no-omit-frame-pointer")))
 slp_switch(void)
 {
         void *fp;
-        register int *stackref, stsizediff;
+        int *stackref, stsizediff;
         int result;
         __asm__ volatile ("" : : : REGS_TO_SAVE);
         __asm__ volatile ("mov r0," REG_FP "\n\tstr r0,%0" : "=m" (fp) : : "r0");
diff --git a/src/greenlet/platform/switch_arm32_ios.h b/src/greenlet/platform/switch_arm32_ios.h
index e993707..9e640e1 100644
--- a/src/greenlet/platform/switch_arm32_ios.h
+++ b/src/greenlet/platform/switch_arm32_ios.h
@@ -38,7 +38,7 @@ __attribute__((optimize("no-omit-frame-pointer")))
 slp_switch(void)
 {
         void *fp;
-        register int *stackref, stsizediff, result;
+        int *stackref, stsizediff, result;
         __asm__ volatile ("" : : : REGS_TO_SAVE);
         __asm__ volatile ("str " REG_FP ",%0" : "=m" (fp));
         __asm__ ("mov %0," REG_SP : "=r" (stackref));
diff --git a/src/greenlet/platform/switch_csky_gcc.h b/src/greenlet/platform/switch_csky_gcc.h
index 7486b94..ac469d3 100644
--- a/src/greenlet/platform/switch_csky_gcc.h
+++ b/src/greenlet/platform/switch_csky_gcc.h
@@ -23,7 +23,7 @@ __attribute__((optimize("no-omit-frame-pointer")))
 #endif
 slp_switch(void)
 {
-        register int *stackref, stsizediff;
+        int *stackref, stsizediff;
         int result;
 
         __asm__ volatile ("" : : : REGS_TO_SAVE);
diff --git a/src/greenlet/platform/switch_mips_unix.h b/src/greenlet/platform/switch_mips_unix.h
index 1916b26..b9003e9 100644
--- a/src/greenlet/platform/switch_mips_unix.h
+++ b/src/greenlet/platform/switch_mips_unix.h
@@ -19,8 +19,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register int *stackref, stsizediff;
+    int err;
+    int *stackref, stsizediff;
 #ifdef __mips64
     uint64_t gpsave;
 #endif
diff --git a/src/greenlet/platform/switch_ppc64_aix.h b/src/greenlet/platform/switch_ppc64_aix.h
index e07b8de..e7e0b87 100644
--- a/src/greenlet/platform/switch_ppc64_aix.h
+++ b/src/greenlet/platform/switch_ppc64_aix.h
@@ -74,8 +74,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register long *stackref, stsizediff;
+    int err;
+    long *stackref, stsizediff;
     void * toc;
     void * r30;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
diff --git a/src/greenlet/platform/switch_ppc64_linux.h b/src/greenlet/platform/switch_ppc64_linux.h
index 88e6847..3c324d0 100644
--- a/src/greenlet/platform/switch_ppc64_linux.h
+++ b/src/greenlet/platform/switch_ppc64_linux.h
@@ -76,8 +76,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register long *stackref, stsizediff;
+    int err;
+    long *stackref, stsizediff;
     void * toc;
     void * r30;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
diff --git a/src/greenlet/platform/switch_ppc_aix.h b/src/greenlet/platform/switch_ppc_aix.h
index c7d476f..6d93c13 100644
--- a/src/greenlet/platform/switch_ppc_aix.h
+++ b/src/greenlet/platform/switch_ppc_aix.h
@@ -53,8 +53,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register int *stackref, stsizediff;
+    int err;
+    int *stackref, stsizediff;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
     __asm__ ("mr %0, 1" : "=r" (stackref) : );
     {
diff --git a/src/greenlet/platform/switch_ppc_linux.h b/src/greenlet/platform/switch_ppc_linux.h
index 0a71255..e83ad70 100644
--- a/src/greenlet/platform/switch_ppc_linux.h
+++ b/src/greenlet/platform/switch_ppc_linux.h
@@ -49,8 +49,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register int *stackref, stsizediff;
+    int err;
+    int *stackref, stsizediff;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
     __asm__ ("mr %0, 1" : "=r" (stackref) : );
     {
diff --git a/src/greenlet/platform/switch_ppc_macosx.h b/src/greenlet/platform/switch_ppc_macosx.h
index 56e573f..d6e5a03 100644
--- a/src/greenlet/platform/switch_ppc_macosx.h
+++ b/src/greenlet/platform/switch_ppc_macosx.h
@@ -46,8 +46,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register int *stackref, stsizediff;
+    int err;
+    int *stackref, stsizediff;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
     __asm__ ("; asm block 2\n\tmr %0, r1" : "=g" (stackref) : );
     {
diff --git a/src/greenlet/platform/switch_ppc_unix.h b/src/greenlet/platform/switch_ppc_unix.h
index 2b3d307..ca590a5 100644
--- a/src/greenlet/platform/switch_ppc_unix.h
+++ b/src/greenlet/platform/switch_ppc_unix.h
@@ -47,8 +47,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register int *stackref, stsizediff;
+    int err;
+    int *stackref, stsizediff;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
     __asm__ ("mr %0, 1" : "=g" (stackref) : );
     {
diff --git a/src/greenlet/platform/switch_s390_unix.h b/src/greenlet/platform/switch_s390_unix.h
index 6641854..9199367 100644
--- a/src/greenlet/platform/switch_s390_unix.h
+++ b/src/greenlet/platform/switch_s390_unix.h
@@ -36,8 +36,8 @@
 static int
 slp_switch(void)
 {
-    register int ret;
-    register long *stackref, stsizediff;
+    int ret;
+    long *stackref, stsizediff;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
 #ifdef __s390x__
     __asm__ volatile ("lgr %0, 15" : "=r" (stackref) : );
diff --git a/src/greenlet/platform/switch_sparc_sun_gcc.h b/src/greenlet/platform/switch_sparc_sun_gcc.h
index 652b57f..96990c3 100644
--- a/src/greenlet/platform/switch_sparc_sun_gcc.h
+++ b/src/greenlet/platform/switch_sparc_sun_gcc.h
@@ -51,8 +51,8 @@
 static int
 slp_switch(void)
 {
-    register int err;
-    register int *stackref, stsizediff;
+    int err;
+    int *stackref, stsizediff;
 
     /* Put current stack pointer into stackref.
      * Register spilling is done in save/restore.
diff --git a/src/greenlet/platform/switch_x32_unix.h b/src/greenlet/platform/switch_x32_unix.h
index cb14ec1..893369c 100644
--- a/src/greenlet/platform/switch_x32_unix.h
+++ b/src/greenlet/platform/switch_x32_unix.h
@@ -22,8 +22,8 @@ slp_switch(void)
     void* ebx;
     unsigned int csr;
     unsigned short cw;
-    register int err;
-    register int *stackref, stsizediff;
+    int err;
+    int *stackref, stsizediff;
     __asm__ volatile ("" : : : REGS_TO_SAVE);
     __asm__ volatile ("fstcw %0" : "=m" (cw));
     __asm__ volatile ("stmxcsr %0" : "=m" (csr));
diff --git a/src/greenlet/platform/switch_x86_unix.h b/src/greenlet/platform/switch_x86_unix.h
index 3a95186..493fa6b 100644
--- a/src/greenlet/platform/switch_x86_unix.h
+++ b/src/greenlet/platform/switch_x86_unix.h
@@ -51,7 +51,7 @@ slp_switch(void)
 #endif
     void *ebp, *ebx;
     unsigned short cw;
-    register int *stackref, stsizediff;
+    int *stackref, stsizediff;
     __asm__ volatile ("" : : : "esi", "edi");
     __asm__ volatile ("fstcw %0" : "=m" (cw));
     __asm__ volatile ("movl %%ebp, %0" : "=m" (ebp));
-- 
2.39.1