File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -300,15 +300,15 @@ _Py_AssertHoldsTstateFunc(const char *func)
300
300
#define _Py_AssertHoldsTstate ()
301
301
#endif
302
302
303
- #if !_Py__has_builtin (__builtin_frame_address ) && !defined(_MSC_VER )
303
+ #if !_Py__has_builtin (__builtin_frame_address ) && !defined(__GNUC__ ) && !defined( _MSC_VER )
304
304
static uintptr_t return_pointer_as_int (char * p ) {
305
305
return (uintptr_t )p ;
306
306
}
307
307
#endif
308
308
309
309
static inline uintptr_t
310
310
_Py_get_machine_stack_pointer (void ) {
311
- #if _Py__has_builtin (__builtin_frame_address )
311
+ #if _Py__has_builtin (__builtin_frame_address ) || defined( __GNUC__ )
312
312
return (uintptr_t )__builtin_frame_address (0 );
313
313
#elif defined(_MSC_VER )
314
314
return (uintptr_t )_AddressOfReturnAddress ();
You can’t perform that action at this time.
0 commit comments