
Is it noted somewhere that building Python with GCC 4.x results in problems such as abs(-sys.maxint-1) being negative? I think this is something users may want to know. Perhaps the "Known Bugs" page at http://www.python.org/download/releases/2.5/bugs/ is the right place to put this info. Georg

Georg Brandl schrieb:
Is it noted somewhere that building Python with GCC 4.x results in problems such as abs(-sys.maxint-1) being negative?
Yes, it's in the README (although it claims problems only exist with 4.1 and 4.2; 4.0 seems to work fine for me).
I think this is something users may want to know.
See what I wrote. Users are advised to either not use that compiler, or add -fwrapv. Regards, Martin

Georg Brandl schrieb:
Is it noted somewhere that building Python with GCC 4.x results in problems such as abs(-sys.maxint-1) being negative?
Yes, it's in the README (although it claims problems only exist with 4.1 and 4.2; 4.0 seems to work fine for me).
I think this is something users may want to know.
See what I wrote. Users are advised to either not use that compiler, or add -fwrapv. Regards, Martin
participants (2)
-
"Martin v. Löwis"
-
Georg Brandl