Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r90603:30b1611b058f
Date: 2017-03-09 10:10 +0100
http://bitbucket.org/pypy/pypy/changeset/30b1611b058f/

Log:    Workaround for gcc

diff --git a/rpython/jit/backend/x86/test/test_zmath.py 
b/rpython/jit/backend/x86/test/test_zmath.py
--- a/rpython/jit/backend/x86/test/test_zmath.py
+++ b/rpython/jit/backend/x86/test/test_zmath.py
@@ -61,7 +61,12 @@
     return -42  # ok
 
 def test_math():
-    f = compile(fn, [])
+    # note: we use lldebug because in the normal optimizing mode, some
+    # calls may be completely inlined and constant-folded by the
+    # compiler (with -flto), e.g. atanh(0.3).  They give then slightly
+    # different result than if they were executed at runtime.
+    # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79973
+    f = compile(fn, [], lldebug=True)
     res = f()
     if res >= 0:
         py.test.fail(repr(MathTests.TESTCASES[res]))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to