Protect the trigd functions in libgfortran from unavailable math functions.
authorFritz Reese <foreese@gcc.gnu.org>
Wed, 22 Apr 2020 15:45:22 +0000 (11:45 -0400)
committerFritz Reese <foreese@gcc.gnu.org>
Thu, 23 Apr 2020 14:11:01 +0000 (10:11 -0400)
commite8eecc2a919033ad4224756a8759d8e94c0e4bc2
tree6548c11c6df9c8fa08f6d2eb1311df9fbd30f648
parent966de09be91c639d66d252c9ae6ab8da5ebfca18
Protect the trigd functions in libgfortran from unavailable math functions.

libgfortran/ChangeLog:

2020-04-22  Fritz Reese  <foreese@gcc.gnu.org>

PR libfortran/94694
PR libfortran/94586
* intrinsics/trigd.c, intrinsics/trigd_lib.inc, intrinsics/trigd.inc:
Guard against unavailable math functions.
Use suffixes from kinds.h based on the REAL kind.

gcc/fortran/ChangeLog:

2020-04-22  Fritz Reese  <foreese@gcc.gnu.org>

* trigd_fe.inc: Use mpfr to compute cosd(30) rather than a host-
precision floating point literal based on an invalid macro.
gcc/fortran/ChangeLog
gcc/fortran/trigd_fe.inc
libgfortran/ChangeLog
libgfortran/intrinsics/trigd.c
libgfortran/intrinsics/trigd.inc
libgfortran/intrinsics/trigd_lib.inc