[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Raymond. Postscript: I had a feeling of deja vu about this, and I've just been searching through old emails. It turns out I filed an OS X bug (#6466807 ) for this exact issue back in 2008; cexp was broken in 10.5, fixed in 10.6, and clearly is now

[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Mark. test_cmath passed now. I've also applied this to Python2.7. -- ___ Python tracker ___

[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91374660355a by Raymond Hettinger in branch '2.7': Issue #18513: Add workaround for OS X 10.8 cexp bug that leads to wrong cmath.rect(0.0,-0.0) results. http://hg.python.org/cpython/rev/91374660355a -- _

[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Mark Dickinson
Mark Dickinson added the comment: Should be fixed now. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker ___

[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce771c2d0220 by Mark Dickinson in branch '3.3': Issue #18513: Add workaround for OS X 10.8 cexp bug that leads to wrong cmath.rect(0.0,-0.0) results. http://hg.python.org/cpython/rev/ce771c2d0220 New changeset ae769deb45b2 by Mark Dickinson in bran

[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Mark Dickinson
Mark Dickinson added the comment: I can't reproduce this here on OS 10.6 (I don't have access to anything later), but I think I can guess what's happening: I suspect that gcc 4.8 is optimizing the pair of 'cos' and 'sin' calls into a single call to 'cexp'. And then the OS X library implement

[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Looks similar to issue #15477, but that one was fixed (we added a local workaround and reported the OS bug to Apple). And it was with clang rather than gcc. Raymond: from the title, can I assume that you don't see this failure on a debug build? That

[issue18513] test.cmath fails on OS/X with gcc-4.8 in non-debug build

2013-07-20 Thread Raymond Hettinger
New submission from Raymond Hettinger: == FAIL: test_specific_values (__main__.CMathTests) -- Traceback (most recent call last): File "/Users/raymondhettinger/