[New-bugs-announce] [issue11149] [PATCH] Configure should enable -fwrapv for clang

Ismail Donmez report at bugs.python.org
Tue Feb 8 11:46:47 CET 2011

New submission from Ismail Donmez <ismail at 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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list