This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Aaron Hall, benjamin.peterson, thatiparthy, vstinner
Date 2018-10-25.07:34:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I modified PR 10079 to add a Py_STATIC_INLINE(TYPE) macro:

* Use __attribute__((always_inline)) with GCC and clang
* Use __forceinline with MSVC

Tests on Linux, example:

"./configure --with-pydebug CC=clang CFLAGS="-O0" && make clean && make platform"

* Linux, gcc -O0: inlined
* Linux, clang -O0: inlined

Test done on Fedora 28 with GCC 8.1.1 and clang 6.0.1.
Date User Action Args
2018-10-25 07:34:03vstinnersetrecipients: + vstinner, benjamin.peterson, thatiparthy, Aaron Hall
2018-10-25 07:34:03vstinnersetmessageid: <>
2018-10-25 07:34:03vstinnerlinkissue35059 messages
2018-10-25 07:34:03vstinnercreate