https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94694
Fritz Reese <foreese at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #48332|0 |1 is obsolete| | Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |foreese at gcc dot gnu.org --- Comment #26 from Fritz Reese <foreese at gcc dot gnu.org> --- Created attachment 48351 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48351&action=edit Patch to protect trigd functions based on system availability (v2) I've attached a new patch for trigd. Below is the delta on top of the old patch. I'm building and testing now. Jakub, if you concur, I will commit these patches and close the PR after successful testing. diff --git a/libgfortran/intrinsics/trigd_lib.inc b/libgfortran/intrinsics/trigd_lib.inc index 66e22c3845e..e90f9deaa5a 100644 --- a/libgfortran/intrinsics/trigd_lib.inc +++ b/libgfortran/intrinsics/trigd_lib.inc @@ -128,9 +128,9 @@ PIO180L -- lower bits of pi/180 for FMA #define mpz_cmp_ui(x, y) ((x) - (y)) #define mpz_divisible_ui_p(n, d) ((n) % (d) == 0) -#define D2R(x) (x = FMA((x), PIO180H, (x) * PIO180L)) +#define D2R(x) (x = FMA((x), PIO180H_LITERAL, (x) * PIO180L_LITERAL)) -#define SET_COSD30(x) (x = COSD30) +#define SET_COSD30(x) (x = COSD30_LITERAL) #ifdef SIND extern FTYPE SIND (FTYPE);