On 5/28/25 19:51, Tobias Burnus wrote:
Hi Yuao,
Yuao Ma wrote:
[…]
Done.
LGTM :-) I have now applied it as r16-938-ge8fdd55ec90749.
Thanks for the patch!
Tobias
This breaks bootstrap here on openSUSE Leap 15.6 with mpfr-4.0.2:
../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr*
gfc_simplify_cospi(gfc_expr*)':
../../gcc-trunk/gcc/fortran/simplify.cc:2305:3: error: 'mpfr_fmod_ui'
was not declared in this scope; did you mean 'mpfr_fmodquo'?
2305 | mpfr_fmod_ui (cs, n, 2, GFC_RND_MODE);
| ^~~~~~~~~~~~
| mpfr_fmodquo
../../gcc-trunk/gcc/fortran/simplify.cc: In function 'gfc_expr*
gfc_simplify_sinpi(gfc_expr*)':
../../gcc-trunk/gcc/fortran/simplify.cc:2346:3: error: 'mpfr_fmod_ui'
was not declared in this scope; did you mean 'mpfr_fmodquo'?
2346 | mpfr_fmod_ui (sn, n, 2, GFC_RND_MODE);
| ^~~~~~~~~~~~
| mpfr_fmodquo