https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113152
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-01-21 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #13 from anlauf at gcc dot gnu.org --- (In reply to kargl from comment #12) > Created attachment 57179 [details] > Patch This patch does not compile with older MPFR versions: ../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr* gfc_simplify_cospi(gfc_expr*)': ../../gcc-trunk/gcc/fortran/simplify.cc:2085:7: error: 'mpfr_cospi' was not declared in this scope; did you mean 'mpfr_cosh'? 2085 | mpfr_cospi (result->value.real, result->value.real, GFC_RND_MODE); | ^~~~~~~~~~ | mpfr_cosh ../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr* gfc_simplify_sinpi(gfc_expr*)': ../../gcc-trunk/gcc/fortran/simplify.cc:7893:7: error: 'mpfr_sinpi' was not declared in this scope; did you mean 'mpfr_sinh'? 7893 | mpfr_sinpi (result->value.real, x->value.real, GFC_RND_MODE); | ^~~~~~~~~~ | mpfr_sinh ../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr* gfc_simplify_tanpi(gfc_expr*)': ../../gcc-trunk/gcc/fortran/simplify.cc:8265:7: error: 'mpfr_tanpi' was not declared in this scope; did you mean 'mpfr_tanh'? 8265 | mpfr_tanpi (result->value.real, x->value.real, GFC_RND_MODE); | ^~~~~~~~~~ | mpfr_tanh ../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr* gfc_simplify_atan2pi(gfc_expr*, gfc_expr*)': ../../gcc-trunk/gcc/fortran/simplify.cc:8320:7: error: 'mpfr_atan2pi' was not declared in this scope; did you mean 'mpfr_atan2'? 8320 | mpfr_atan2pi (result->value.real, y->value.real, x->value.real, | ^~~~~~~~~~~~ | mpfr_atan2 ../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr* gfc_simplify_atanpi(gfc_expr*)': ../../gcc-trunk/gcc/fortran/simplify.cc:8349:7: error: 'mpfr_atanpi' was not declared in this scope; did you mean 'mpfr_atanh'? 8349 | mpfr_atanpi (result->value.real, x->value.real, GFC_RND_MODE); | ^~~~~~~~~~~ | mpfr_atanh ../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr* gfc_simplify_asinpi(gfc_expr*)': ../../gcc-trunk/gcc/fortran/simplify.cc:8377:7: error: 'mpfr_asinpi' was not declared in this scope; did you mean 'mpfr_asinh'? 8377 | mpfr_asinpi (result->value.real, x->value.real, GFC_RND_MODE); | ^~~~~~~~~~~ | mpfr_asinh ../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr* gfc_simplify_acospi(gfc_expr*)': ../../gcc-trunk/gcc/fortran/simplify.cc:8405:7: error: 'mpfr_acospi' was not declared in this scope; did you mean 'mpfr_acosh'? 8405 | mpfr_acospi (result->value.real, x->value.real, GFC_RND_MODE); | ^~~~~~~~~~~ | mpfr_acosh I think that you cannot do + if (MPFR_HALF_CYCLE) you really must use #if MPFR_HALF_CYCLE