Message328418
| 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 |
<1540452843.15.0.788709270274.issue35059@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|