File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -306,23 +306,15 @@ _Py_AssertHoldsTstateFunc(const char *func)
306306#define _Py_AssertHoldsTstate ()
307307#endif
308308
309- #if !_Py__has_builtin (__builtin_frame_address ) && !defined(__GNUC__ ) && !defined(_MSC_VER )
310309static uintptr_t return_pointer_as_int (char * p ) {
311310 return (uintptr_t )p ;
312311}
313- #endif
314312
315313static inline uintptr_t
316314_Py_get_machine_stack_pointer (void ) {
317- #if _Py__has_builtin (__builtin_frame_address ) || defined(__GNUC__ )
318- return (uintptr_t )__builtin_frame_address (0 );
319- #elif defined(_MSC_VER )
320- return (uintptr_t )_AddressOfReturnAddress ();
321- #else
322315 char here ;
323316 /* Avoid compiler warning about returning stack address */
324317 return return_pointer_as_int (& here );
325- #endif
326318}
327319
328320static inline intptr_t
You can’t perform that action at this time.
0 commit comments