STINNER Victor added the comment:

dtoa.c is now compiled with -fno-string-aliasing (for any clang version, not 
only clang 4.0) on Python 3.5, 3.6 and 3.7.

It was decided to not touch dtoa.c to not diverge from upstream.

Thanks Dimitry Andric and Mark Dickinson for your reviews and support in this 
cryptic issue!

Note 1: We consider that Clang 4.0 is wrong, whereas GCC respects the C99 
standard for aliasing on unions. But I don't think that it matters much who is 
wrong or not :-)

Note 2: Python 2.7 already used -fno-strict-aliasing on all .c files because of 
its design of PyObject structures, fixed in Python 3.

----------
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30124>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to