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)
300300#define _Py_AssertHoldsTstate ()
301301#endif
302302
303- #if !_Py__has_builtin (__builtin_frame_address ) && !defined(_MSC_VER )
303+ #if !_Py__has_builtin (__builtin_frame_address ) && !defined(__GNUC__ ) && !defined( _MSC_VER )
304304static uintptr_t return_pointer_as_int (char * p ) {
305305 return (uintptr_t )p ;
306306}
307307#endif
308308
309309static inline uintptr_t
310310_Py_get_machine_stack_pointer (void ) {
311- #if _Py__has_builtin (__builtin_frame_address )
311+ #if _Py__has_builtin (__builtin_frame_address ) || defined( __GNUC__ )
312312 return (uintptr_t )__builtin_frame_address (0 );
313313#elif defined(_MSC_VER )
314314 return (uintptr_t )_AddressOfReturnAddress ();
You can’t perform that action at this time.
0 commit comments