mirror of
https://github.com/python/cpython.git
synced 2025-10-15 11:22:18 +00:00
Do a better job of not inlining Py_ADDRESS_IN_RANGE() for newer gcc's.
Perhaps Py_NO_INLINE should be moved to pyport.h or some other header?
This commit is contained in:
parent
b6fc9df8fc
commit
e5e5aa4ea6
1 changed files with 9 additions and 2 deletions
|
@ -557,8 +557,15 @@ error:
|
||||||
|
|
||||||
#undef Py_ADDRESS_IN_RANGE
|
#undef Py_ADDRESS_IN_RANGE
|
||||||
|
|
||||||
/* Don't make static, to ensure this isn't inlined. */
|
#if defined(__GNUC__) && (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)
|
||||||
int Py_ADDRESS_IN_RANGE(void *P, poolp pool);
|
#define Py_NO_INLINE __attribute__((__noinline__))
|
||||||
|
#else
|
||||||
|
#define Py_NO_INLINE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Don't make static, to try to ensure this isn't inlined. */
|
||||||
|
int Py_ADDRESS_IN_RANGE(void *P, poolp pool) Py_NO_INLINE;
|
||||||
|
#undef Py_NO_INLINE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*==========================================================================*/
|
/*==========================================================================*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue