From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2138) id E63093858D35; Mon, 13 Sep 2021 08:04:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E63093858D35 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andreas Schwab To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3470] libgfortran: Handle m68k extended real format in ISO_Fortran_binding.h X-Act-Checkin: gcc X-Git-Author: Andreas Schwab X-Git-Refname: refs/heads/master X-Git-Oldrev: fbeead55e03711fb39429ab564a0d8a0b43e9a74 X-Git-Newrev: fc4a29c0781186269dc5f668e76ecea82030dde3 Message-Id: <20210913080452.E63093858D35@sourceware.org> Date: Mon, 13 Sep 2021 08:04:52 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2021 08:04:53 -0000 https://gcc.gnu.org/g:fc4a29c0781186269dc5f668e76ecea82030dde3 commit r12-3470-gfc4a29c0781186269dc5f668e76ecea82030dde3 Author: Andreas Schwab Date: Fri Sep 10 17:33:09 2021 +0200 libgfortran: Handle m68k extended real format in ISO_Fortran_binding.h libgfortran/ * ISO_Fortran_binding.h (CFI_type_long_double) (CFI_type_long_double_Complex) [LDBL_MANT_DIG == 64 && LDBL_MIN_EXP == -16382 && LDBL_MAX_EXP == 16384]: Define. Diff: --- libgfortran/ISO_Fortran_binding.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libgfortran/ISO_Fortran_binding.h b/libgfortran/ISO_Fortran_binding.h index 5335ea471c7..9c42464affa 100644 --- a/libgfortran/ISO_Fortran_binding.h +++ b/libgfortran/ISO_Fortran_binding.h @@ -233,6 +233,13 @@ extern int CFI_setpointer (CFI_cdesc_t *, CFI_cdesc_t *, const CFI_index_t []); #define CFI_type_long_double (CFI_type_Real + (10 << CFI_type_kind_shift)) #define CFI_type_long_double_Complex (CFI_type_Complex + (10 << CFI_type_kind_shift)) +/* This is the 96-bit encoding on m68k; Fortran assigns it kind 10. */ +#elif (LDBL_MANT_DIG == 64 \ + && LDBL_MIN_EXP == -16382 \ + && LDBL_MAX_EXP == 16384) +#define CFI_type_long_double (CFI_type_Real + (10 << CFI_type_kind_shift)) +#define CFI_type_long_double_Complex (CFI_type_Complex + (10 << CFI_type_kind_shift)) + /* This is the IEEE 128-bit encoding, same as float128. */ #elif (LDBL_MANT_DIG == 113 \ && LDBL_MIN_EXP == -16381 \