diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-11-28 15:13:12 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-11-28 15:13:12 +0000 |
commit | 4f648d14575f6bd30e5ce5228f0027906541877c (patch) | |
tree | fb006188e880f605245df3b090caa8ec06fcc406 /tests/tstrtofr.c | |
parent | c567e750a353e950355fec9f5fc6d62ff262cf52 (diff) | |
download | mpfr-4f648d14575f6bd30e5ce5228f0027906541877c.tar.gz |
[tests/tstrtofr.c] In case of failure of some particular test, output
the probable cause of this failure (GCC bug 86554) with a workaround.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13306 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tstrtofr.c')
-rw-r--r-- | tests/tstrtofr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tstrtofr.c b/tests/tstrtofr.c index 3abd279b9..619586884 100644 --- a/tests/tstrtofr.c +++ b/tests/tstrtofr.c @@ -904,6 +904,13 @@ check_overflow (void) { printf ("Check overflow failed (2) with:\n s='%s'\n x=", s); mpfr_dump (x); +#if defined(__GNUC__) + printf ("This failure is triggered by GCC bug 86554:\n" + " https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86554\n" + " https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87276 " + "(about this test)\nWorkaround: disable code hoisting " + "with -fno-code-hoisting in CFLAGS.\n"); +#endif exit (1); } mpfr_strtofr (x, "123456789E170141183460469231731687303715884105728", |