New submission from Ismail Donmez <ism...@namtrac.org>: clang (as with gcc 4.x) assumes signed integer overflow is undefined. But Python depends on the fact that signed integer overflow wraps.
Currently configure script adds -fwrapv flag for GCC (added by me back in the day), same should be done with clang. Patch attached. ---------- components: Build files: clang-fwrapv.diff keywords: patch messages: 128170 nosy: cartman priority: normal severity: normal status: open title: [PATCH] Configure should enable -fwrapv for clang type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file20717/clang-fwrapv.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11149> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com