This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
your patch broke bootstrap with MPFR 2.4.2, which is still the recommended (or perhaps minimal) version according to install.texi: /vol/gcc/src/hg/trunk/local/gcc/gimple-ssa-sprintf.c: In function 'int {anonymous}::format_floating_max(tree, char)': /vol/gcc/src/hg/trunk/local/gcc/gimple-ssa-sprintf.c:1128:27: error: 'MPFR_RNDN' was not declared in this scope mpfr_from_real (x, &rv, MPFR_RNDN); ^ /vol/gcc/src/hg/trunk/local/gcc/gimple-ssa-sprintf.c: In function '{anonymous}::fmtresult {anonymous}::format_floating(const {anonymous}::conversion_spec&, tree)': /vol/gcc/src/hg/trunk/local/gcc/gimple-ssa-sprintf.c:1328:37: error: 'MPFR_RNDN' was not declared in this scope mpfr_from_real (mpfrval, rvp, MPFR_RNDN); ^ MPFR_RNDN was only introduced in mpfr 3.0.0, and everywhere else in gcc GMP_RNDN is used instead. mpfr 3.0.0 <mpfr.h> has /* kept for compatibility with MPFR 2.4.x and before */ #define GMP_RNDN MPFR_RNDN The following patch (together with your other one to fix ILP32 targets) allows a sparc-sun-solaris2.12 bootstrap to continue. I'm going to commit it as obvious.
Thanks. I didn't realize the older MPFR was still recommended. FWIW, I was using MPFR 2.4 until recently but after running into some (unexplained) runtime issues I reran the download_prerequisites script to update them and it installed 3.1.4. It seems that either the recommended MPFR version should be bumped up (or the script downgraded to 2.4 to avoid this risk, though I suspect there are reasons why it was updated to the latest). Based on the log the script was updated from MPFR 2.4 to 3.0 in r235763. The change also updated install.texi but not the MPFR version mentioned there. It might be worth checking with the author, Bernd Edlinger, to see how to resolve this. Let me ping him in a separate thread. Martin
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |