[issue18028] Warnings with -fstrict-aliasing

Christian Heimes report at bugs.python.org
Sun Jul 7 21:02:24 CEST 2013


Christian Heimes added the comment:

The warning is caused by the X86_64 code for timestamps:

#define READ_TIMESTAMP(val) \
    __asm__ __volatile__("rdtsc" : \
                         "=a" (((int*)&(val))[0]), "=d" (((int*)&(val))[1]));

The patch fixes the issue with two temp vars.

----------
keywords: +patch
nosy: +christian.heimes
priority: normal -> low
stage:  -> patch review
type:  -> compile error
versions: +Python 3.4
Added file: http://bugs.python.org/file30846/tsc_strict_aliasing.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18028>
_______________________________________


More information about the Python-bugs-list mailing list