STINNER Victor <[email protected]> added the comment:
With LTO, compile.o requires an undefined _Py_Mangle symbol:
$ gcc -pthread -c -DNDEBUG -fwrapv -O3 -std=c99 -fvisibility=hidden -flto
-I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Python/compile.o
Python/compile.c; nm Python/compile.o | grep _Py_Mangle
U _Py_Mangle
Without LTO, compile.o defines _Py_Mangle symbol:
$ gcc -pthread -c -DNDEBUG -fwrapv -O3 -std=c99 -fvisibility=hidden
-I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Python/compile.o
Python/compile.c; nm Python/compile.o | grep _Py_Mangle
0000000000003c20 T _Py_Mangle
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42164>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com