[issue12985] Check signed arithmetic overflow in ./configure

2014-05-14 Thread Stefan Krah
Stefan Krah added the comment: I won't have time to work on this. It would also be an option to do these checks in test_capi. -- resolution: -> later stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12985] Check signed arithmetic overflow in ./configure

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: My rationale was something like this: If a compiler optimizes away signed arithmetic overflow, this particular comparison will most likely be in the set of optimizations, since it seems like low hanging fruit. Of course it doesn't guarantee wrapping behavior in ge

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Mark Dickinson
Mark Dickinson added the comment: BTW, I suspect that the reason there were no related test failures with the Intel compiler is that most of the problems in the Python code stem from multiplications rather than additions. Probably icc isn't sophisticated enough to optimize those multiplicati

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Mark Dickinson
Mark Dickinson added the comment: I don't see how this is helpful---all it's reporting on is whether that compiler happened to decide to optimize away that particular comparison; something which is going to be highly dependent on compiler version, flags, platform, etc., and still doesn't tel

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
New submission from Stefan Krah : I'm not sure if this is a good idea: I wonder if it would be an option to check for overflow behavior at the bottom of ./configure and print a warning. The patch appears to work for gcc, clang and suncc. It would have caught the problem in #12973. The Intel com