[pypy-issue] [issue1312] Strict aliasing violations in "pypy/translator/c/src/thread_pthread.h"

Armin Rigo tracker at bugs.pypy.org
Sun Jan 20 11:14:19 CET 2013


Armin Rigo <armin.rigo at gmail.com> added the comment:

Update: this is now about thread_pthread.c:66 and :127.

This error may mean that pthread_t is larger than a long on Solaris.  This is
not really supported by the rest of the code, but then, neither is it on
CPython, from where these two strange lines code from.

The only difference with CPython is that CPython uses #if whereas we use a
regular if.  Can you check on Solaris whether sizeof(pthread_t) is really
greater than sizeof(long), or whether it's just gcc complaining about a dead
code path?

----------
nosy: +arigo -jcea
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1312>
________________________________________


More information about the pypy-issue mailing list