Skip to content

Commit b738d5c

Browse files
Fix compiler warning from misusing DECLARE_TARGET in typedef
1 parent d6dd64a commit b738d5c

File tree

4 files changed

+513
-1
lines changed

4 files changed

+513
-1
lines changed

Tools/jit/trampoline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _Py_CODEUNIT *
1010
_JIT_ENTRY(
1111
_PyExecutorObject *exec, _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate
1212
) {
13-
typedef DECLARE_TARGET((*jit_func));
13+
typedef _Py_CODEUNIT *__attribute__((preserve_none)) (*jit_func)(_PyInterpreterFrame *, _PyStackRef *, PyThreadState *);
1414
jit_func jitted = (jit_func)exec->jit_code;
1515
return jitted(frame, stack_pointer, tstate);
1616
}

confdefs.h

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
/* confdefs.h */
2+
#define _NETBSD_SOURCE 1
3+
#define __BSD_VISIBLE 1
4+
#define _DARWIN_C_SOURCE 1
5+
#define _PYTHONFRAMEWORK ""
6+
#define HAVE_STDIO_H 1
7+
#define HAVE_STDLIB_H 1
8+
#define HAVE_STRING_H 1
9+
#define HAVE_INTTYPES_H 1
10+
#define HAVE_STDINT_H 1
11+
#define HAVE_STRINGS_H 1
12+
#define HAVE_SYS_STAT_H 1
13+
#define HAVE_SYS_TYPES_H 1
14+
#define HAVE_UNISTD_H 1
15+
#define HAVE_WCHAR_H 1
16+
#define STDC_HEADERS 1
17+
#define _ALL_SOURCE 1
18+
#define _DARWIN_C_SOURCE 1
19+
#define _GNU_SOURCE 1
20+
#define _HPUX_ALT_XOPEN_SOCKET_API 1
21+
#define _NETBSD_SOURCE 1
22+
#define _OPENBSD_SOURCE 1
23+
#define _POSIX_PTHREAD_SEMANTICS 1
24+
#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
25+
#define __STDC_WANT_IEC_60559_BFP_EXT__ 1
26+
#define __STDC_WANT_IEC_60559_DFP_EXT__ 1
27+
#define __STDC_WANT_IEC_60559_EXT__ 1
28+
#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
29+
#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
30+
#define __STDC_WANT_LIB_EXT2__ 1
31+
#define __STDC_WANT_MATH_SPEC_FUNCS__ 1
32+
#define _TANDEM_SOURCE 1
33+
#define __EXTENSIONS__ 1
34+
#define PY_SUPPORT_TIER 1
35+
#define Py_DEBUG 1
36+
#define STDC_HEADERS 1
37+
#define HAVE_ALLOCA_H 1
38+
#define HAVE_DLFCN_H 1
39+
#define HAVE_ERRNO_H 1
40+
#define HAVE_FCNTL_H 1
41+
#define HAVE_GRP_H 1
42+
#define HAVE_LANGINFO_H 1
43+
#define HAVE_NETDB_H 1
44+
#define HAVE_NET_ETHERNET_H 1
45+
#define HAVE_NETINET_IN_H 1
46+
#define HAVE_POLL_H 1
47+
#define HAVE_PTHREAD_H 1
48+
#define HAVE_SCHED_H 1
49+
#define HAVE_SETJMP_H 1
50+
#define HAVE_SIGNAL_H 1
51+
#define HAVE_SPAWN_H 1
52+
#define HAVE_SYS_EVENT_H 1
53+
#define HAVE_SYS_FILE_H 1
54+
#define HAVE_SYS_IOCTL_H 1
55+
#define HAVE_SYS_KERN_CONTROL_H 1
56+
#define HAVE_SYS_LOCK_H 1
57+
#define HAVE_SYS_MMAN_H 1
58+
#define HAVE_SYS_PARAM_H 1
59+
#define HAVE_SYS_POLL_H 1
60+
#define HAVE_SYS_RANDOM_H 1
61+
#define HAVE_SYS_RESOURCE_H 1
62+
#define HAVE_SYS_SELECT_H 1
63+
#define HAVE_SYS_SOCKET_H 1
64+
#define HAVE_SYS_STAT_H 1
65+
#define HAVE_SYS_STATVFS_H 1
66+
#define HAVE_SYS_SYS_DOMAIN_H 1
67+
#define HAVE_SYS_SYSCALL_H 1
68+
#define HAVE_SYS_TIME_H 1
69+
#define HAVE_SYS_TIMES_H 1
70+
#define HAVE_SYS_TYPES_H 1
71+
#define HAVE_SYS_UIO_H 1
72+
#define HAVE_SYS_UN_H 1
73+
#define HAVE_SYS_UTSNAME_H 1
74+
#define HAVE_SYS_WAIT_H 1
75+
#define HAVE_SYS_XATTR_H 1
76+
#define HAVE_SYSEXITS_H 1
77+
#define HAVE_SYSLOG_H 1
78+
#define HAVE_TERMIOS_H 1
79+
#define HAVE_UTIL_H 1
80+
#define HAVE_UTIME_H 1
81+
#define HAVE_UTMP_H 1
82+
#define HAVE_DIRENT_H 1
83+
#define HAVE_NET_IF_H 1
84+
#define HAVE_CLOCK_T 1
85+
#define HAVE_MAKEDEV 1
86+
#define _LARGEFILE_SOURCE 1
87+
#define _FILE_OFFSET_BITS 64
88+
#if defined(SCO_DS)
89+
#undef _OFF_T
90+
#endif
91+
#define RETSIGTYPE void
92+
#define HAVE_SSIZE_T 1
93+
#define HAVE___UINT128_T 1
94+
#define HAVE_GCC_UINT128_T 1
95+
#define SIZEOF_INT 4
96+
#define SIZEOF_LONG 8
97+
#define ALIGNOF_LONG 8
98+
#define SIZEOF_LONG_LONG 8
99+
#define SIZEOF_VOID_P 8
100+
#define SIZEOF_SHORT 2
101+
#define SIZEOF_FLOAT 4
102+
#define SIZEOF_DOUBLE 8
103+
#define SIZEOF_FPOS_T 8
104+
#define SIZEOF_SIZE_T 8
105+
#define ALIGNOF_SIZE_T 8
106+
#define SIZEOF_PID_T 4
107+
#define SIZEOF_UINTPTR_T 8
108+
#define ALIGNOF_MAX_ALIGN_T 8
109+
#define HAVE_LONG_DOUBLE 1
110+
#define SIZEOF_LONG_DOUBLE 8
111+
#define SIZEOF__BOOL 1
112+
#define SIZEOF_OFF_T 8
113+
#define SIZEOF_TIME_T 8
114+
#define SIZEOF_PTHREAD_T 8
115+
#define SIZEOF_PTHREAD_KEY_T 8
116+
#define WITH_DYLD 1
117+
#define THREAD_STACK_SIZE 0x1000000
118+
#define PY_HAVE_PERF_TRAMPOLINE 1
119+
#define HAVE_LIBDL 1
120+
#define HAVE_EXECINFO_H 1
121+
#define HAVE_BACKTRACE 1
122+
#define HAVE_DLFCN_H 1
123+
#define HAVE_BACKTRACE 1
124+
#define HAVE_UUID_UUID_H 1
125+
#define HAVE_UUID_UUID_H 1
126+
#define HAVE_UUID_UUID_H 1
127+
#define HAVE_FFI_PREP_CIF_VAR 1
128+
#define HAVE_FFI_PREP_CLOSURE_LOC 1
129+
#define HAVE_FFI_CLOSURE_ALLOC 1
130+
#define _Py_FFI_SUPPORT_C_COMPLEX 1
131+
#define WITH_DECIMAL_CONTEXTVAR 1
132+
#define HAVE_LIBSQLITE3 1
133+
#define HAVE_LIBSQLITE3 1
134+
#define HAVE_LIBSQLITE3 1
135+
#define HAVE_LIBSQLITE3 1
136+
#define HAVE_LIBSQLITE3 1
137+
#define HAVE_LIBSQLITE3 1
138+
#define HAVE_LIBSQLITE3 1
139+
#define HAVE_LIBSQLITE3 1
140+
#define HAVE_LIBSQLITE3 1
141+
#define PY_SQLITE_HAVE_SERIALIZE 1
142+
#define HAVE_NDBM_H 1
143+
#define HAVE_DB_H 1
144+
#define _REENTRANT 1
145+
#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
146+
#define HAVE_PTHREAD_SIGMASK 1
147+
#define ENABLE_IPV6 1
148+
#define WITH_DOC_STRINGS 1
149+
#define HAVE_STD_ATOMIC 1
150+
#define HAVE_BUILTIN_ATOMIC 1
151+
#define WITH_MIMALLOC 1
152+
#define WITH_PYMALLOC 1
153+
#define PY_COERCE_C_LOCALE 1
154+
#define HAVE_DLOPEN 1
155+
#define HAVE_DYNAMIC_LOADING 1
156+
#define HAVE_ALARM 1
157+
#define HAVE_CHMOD 1
158+
#define HAVE_CHOWN 1
159+
#define HAVE_CLOCK 1
160+
#define HAVE_CONFSTR 1
161+
#define HAVE_CTERMID 1
162+
#define HAVE_DLADDR 1
163+
#define HAVE_DUP 1
164+
#define HAVE_EXECV 1
165+
#define HAVE_FACCESSAT 1
166+
#define HAVE_FCHMOD 1
167+
#define HAVE_FCHMODAT 1
168+
#define HAVE_FCHOWN 1
169+
#define HAVE_FCHOWNAT 1
170+
#define HAVE_FDOPENDIR 1
171+
#define HAVE_FORK 1
172+
#define HAVE_FPATHCONF 1
173+
#define HAVE_FSTATAT 1
174+
#define HAVE_FTIME 1
175+
#define HAVE_FTRUNCATE 1
176+
#define HAVE_FUTIMENS 1
177+
#define HAVE_FUTIMES 1
178+
#define HAVE_GAI_STRERROR 1
179+
#define HAVE_GETEGID 1
180+
#define HAVE_GETEUID 1
181+
#define HAVE_GETGID 1
182+
#define HAVE_GETGRENT 1
183+
#define HAVE_GETGRGID 1
184+
#define HAVE_GETGRGID_R 1
185+
#define HAVE_GETGRNAM_R 1
186+
#define HAVE_GETGROUPLIST 1
187+
#define HAVE_GETHOSTNAME 1
188+
#define HAVE_GETITIMER 1
189+
#define HAVE_GETLOADAVG 1
190+
#define HAVE_GETLOGIN 1
191+
#define HAVE_GETLOGIN_R 1
192+
#define HAVE_GETPEERNAME 1
193+
#define HAVE_GETPGID 1
194+
#define HAVE_GETPID 1
195+
#define HAVE_GETPPID 1
196+
#define HAVE_GETPRIORITY 1
197+
#define HAVE_GETPWENT 1
198+
#define HAVE_GETPWNAM_R 1
199+
#define HAVE_GETPWUID 1
200+
#define HAVE_GETPWUID_R 1
201+
#define HAVE_GETRUSAGE 1
202+
#define HAVE_GETSID 1
203+
#define HAVE_GETUID 1
204+
#define HAVE_GETWD 1
205+
#define HAVE_GRANTPT 1
206+
#define HAVE_IF_NAMEINDEX 1
207+
#define HAVE_INITGROUPS 1
208+
#define HAVE_KILL 1
209+
#define HAVE_KILLPG 1
210+
#define HAVE_LCHOWN 1
211+
#define HAVE_LINKAT 1
212+
#define HAVE_LOCKF 1
213+
#define HAVE_LSTAT 1
214+
#define HAVE_LUTIMES 1
215+
#define HAVE_MADVISE 1
216+
#define HAVE_MBRTOWC 1
217+
#define HAVE_MKDIRAT 1
218+
#define HAVE_MKFIFO 1
219+
#define HAVE_MKFIFOAT 1
220+
#define HAVE_MKNOD 1
221+
#define HAVE_MKNODAT 1
222+
#define HAVE_MKTIME 1
223+
#define HAVE_MMAP 1
224+
#define HAVE_NICE 1
225+
#define HAVE_OPENAT 1
226+
#define HAVE_OPENDIR 1
227+
#define HAVE_PATHCONF 1
228+
#define HAVE_PAUSE 1
229+
#define HAVE_PIPE 1
230+
#define HAVE_POLL 1
231+
#define HAVE_POSIX_OPENPT 1
232+
#define HAVE_POSIX_SPAWN 1
233+
#define HAVE_POSIX_SPAWNP 1
234+
#define HAVE_PREAD 1
235+
#define HAVE_PREADV 1
236+
#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1
237+
#define HAVE_PTHREAD_KILL 1
238+
#define HAVE_PTHREAD_GETNAME_NP 1
239+
#define HAVE_PTHREAD_SETNAME_NP 1
240+
#define HAVE_PTSNAME 1

0 commit comments

Comments
 (0)