https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113413
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:b239e9cf98ca9238e61e01864ab4dbb5c7f57ce2 commit r16-602-gb239e9cf98ca9238e61e01864ab4dbb5c7f57ce2 Author: Yuao Ma <c...@outlook.com> Date: Mon May 12 23:07:37 2025 +0800 fortran: map atand(y, x) to atan2d(y, x) [PR113413] According to the Fortran standard, atand(y, x) is equivalent to atan2d(y, x). However, the current atand(y, x) function produces an error. This patch includes the necessary intrinsic mapping, related test, and intrinsic documentation. The minor comment change in intrinsic.cc is cherry-picked from Steve's previous work. PR fortran/113413 - ATAND(Y,X) is unsupported PR fortran/113413 gcc/fortran/ChangeLog: * intrinsic.cc (do_check): Minor doc polish. (add_functions): Add atand(y, x) mapping. * intrinsic.texi: Update atand example. gcc/testsuite/ChangeLog: * gfortran.dg/dec_math.f90: Add atand(y, x) testcase. Signed-off-by: Yuao Ma <c...@outlook.com> Co-authored-by: Steven G. Kargl <ka...@gcc.gnu.org>