Martin Panter added the comment:

Benjamin changed PEP 7 to allow static inline functions directly in Python 3.6. 
But later he added program-wide, linkable inline functions in the Python 3.6 
code:

2f77a9f0b9d6: add plain “inline” to header file
63ae310b60ff: add “extern inline” stubs in a new file

It seems GCC does not support the C99 syntax for these kind of linkable inline 
functions until 4.3. Some possible fixes or workarounds:

1. Revert the offending functions back to macros

2. Clarify in PEP 7 that we intentionally use linkable C99 (extern) inline 
functions, therefore compilers like Steven’s and the buildbot’s aren’t 
supported for 3.6

3. Add some preprocessor magic based on __GNUC_STDC_INLINE__ to detect when the 
GCC 4.0 reversed meanings of “inline” and “extern inline” have to be used.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28092>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to