[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-06 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #10 from Vincent Lefèvre --- (In reply to Richard Biener from comment #8) > The issue with timeouts (as in wall-clock) is that it makes builds > dependent on CPU speed which is something we generally avoid. For ISL > computations whe

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-06 Thread zimmerma+gcc at loria dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #9 from Paul Zimmermann --- Dear Richard, about mini-gmp, note that MPFR 4.1.0 (rc2 now in test) will come with improved mini-gmp support. From NEWS: - Mini-gmp support: replaced --enable-mini-gmp configure option by --with-mini-gmp

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-05 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #8 from Richard Biener --- (In reply to Paul Zimmermann from comment #7) > the problem is partly solved in MPFR development branch, where > jn(7,7) now takes about 2 seconds on my machine, and > jn(73,73) about 4 minut

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread zimmerma+gcc at loria dot fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 Paul Zimmermann changed: What|Removed |Added CC||zimmerma+gcc at loria dot fr --- Comme

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #6 from Vincent Lefèvre --- (In reply to Richard Biener from comment #5) > Vincent, any guidance on that? I guess the actual runtime implementation in > glibc may be "fast" because it's not accurate (evaluating takes 0.00s with > gli

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 Richard Biener changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Richard Biener

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #4 from Alex Coplan --- I left the updated version running for ~1 hour and it didn't finish compiling.

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread acoplan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #3 from Alex Coplan --- Ah, it appears I just wasn't being patient enough. It seems you can make the constant folding take longer (arbitrarily long?) by adding another digit to the arguments. This code: void f(void) { __builtin_jn

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 --- Comment #2 from Andrew Pinski --- Could this be a bug in MPFR? return do_mpfr_arg2 (result, mpfr_jn, arg0, arg1, format); do_mpfr_arg2 does: mpfr_inits2 (prec, m0, m1, NULL); mpfr_from_real (m0, arg0, MPFR_RNDN); mpfr_from_real

[Bug middle-end/96044] GCC hangs in tight loop resolving __builtin_jn using MPFR

2020-07-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96044 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0