[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

Ronald Oussoren report at bugs.python.org
Mon Aug 8 23:24:14 CEST 2011


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

Have you checked if -fwrapv is in the list of compiler arguments in the generated makefile?

There is an open issue about adding that flag when clang is used as the compiler (the flag is already used for gcc). The flag is necessary because the example code contains an integer overflow and that is undefined behavior according to the C standard.

----------
Added file: http://bugs.python.org/file22866/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12701>
_______________________________________
-------------- next part --------------
<html><body bgcolor="#FFFFFF"><blockquote type="cite"><div><br><font class="Apple-style-span" color="#000000"><br></font></div></blockquote>Have you checked if -fwrapv is in the list of compiler arguments in the generated makefile?<div><br></div><div>There is an open issue about adding that flag when clang is used as the compiler (the flag is already used for gcc). The flag is necessary because the example code contains an integer overflow and that is undefined behavior according to the C standard.&nbsp;</div><div><br></div></body></html>


More information about the Python-bugs-list mailing list