STINNER Victor <vstin...@redhat.com> added the comment:

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.

----------

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

  • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... Aaron Hall
    • ... Benjamin Peterson
    • ... STINNER Victor
    • ... శ్రీనివాస్ రెడ్డి తాటిపర్తి
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... Serhiy Storchaka
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... STINNER Victor
    • ... Benjamin Peterson

Reply via email to