homepage

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 axh
Recipients axh, vstinner
Date 2015年09月17日.14:05:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442498721.58.0.132267817877.issue25150@psf.upfronthosting.co.za>
In-reply-to
Content
When I just comment out the 
#include "pyatomic.h" 
line, python 3.5.0 will no longer compile
gcc -pthread -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I. -IInclude -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
In file included from Include/traceback.h:8:0,
 from Include/Python.h:97,
 from ./Programs/python.c:3:
Include/pystate.h:186:8: error: unknown type name ‘_Py_atomic_address’
 PyAPI_DATA(_Py_atomic_address) _PyThreadState_Current;
 ^
Makefile:747: recipe for target 'Programs/python.o' failed
make: *** [Programs/python.o] Error 1
pystate.h:
/* Assuming the current thread holds the GIL, this is the
 PyThreadState for the current thread.
 Issue #23644: pyatomic.h is incompatible with C++ (yet). Disable
 PyThreadState_GET() optimization: declare it as an alias to
 PyThreadState_Get(), as done for limited API. */
#if !defined(Py_LIMITED_API) && !defined(__cplusplus)
PyAPI_DATA(_Py_atomic_address) _PyThreadState_Current;
#endif
History
Date User Action Args
2015年09月17日 14:05:21axhsetrecipients: + axh, vstinner
2015年09月17日 14:05:21axhsetmessageid: <1442498721.58.0.132267817877.issue25150@psf.upfronthosting.co.za>
2015年09月17日 14:05:21axhlinkissue25150 messages
2015年09月17日 14:05:21axhcreate

AltStyle によって変換されたページ (->オリジナル) /