[PATCH] Fortran: make IEEE_CLASS recognize signaling NaNs

2022-01-02 Thread FX via Fortran
Hi, This is the first part of a three-patch series to fix PR 82207 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82207), making gfortran handle signaling NaNs. This part fixes the library code implementing IEEE_CLASS, by using the issignaling macro (from TS 18661-1:2014) to check whether a NaN

[PATCH] Fortran: fix PR103390, ICE in gimplification

2022-01-02 Thread Sandra Loosemore
This patch is for PR103390. For background on this issue, the Fortran standard requires that, when passing a non-contiguous array from Fortran to a BIND(C) function with the CONTIGUOUS attribute on the corresponding dummy argument, the compiler has to arrange for it to be copied to/from a cont

Re: [PATCH] Fortran: fix PR103390, ICE in gimplification

2022-01-02 Thread Harald Anlauf via Fortran
Hi Sandra, Am 02.01.22 um 19:32 schrieb Sandra Loosemore: This patch is for PR103390.  For background on this issue, the Fortran standard requires that, when passing a non-contiguous array from Fortran to a BIND(C) function with the CONTIGUOUS attribute on the corresponding dummy argument, the

[power-iee128] How to specify linker flags

2022-01-02 Thread Thomas Koenig via Fortran
Hi Michael, If you are building libraries that contain modules with multiple long double types, you must use the '-mno-gnu-attribute'. We also use the '-Wno-psabi' option, which silences the warning that you are switching long double types (if glibc is not 2.34 or newer). We may need to tweak