public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Andreas Schwab <schwab@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3470] libgfortran: Handle m68k extended real format in ISO_Fortran_binding.h Date: Mon, 13 Sep 2021 08:04:52 +0000 (GMT) [thread overview] Message-ID: <20210913080452.E63093858D35@sourceware.org> (raw) https://gcc.gnu.org/g:fc4a29c0781186269dc5f668e76ecea82030dde3 commit r12-3470-gfc4a29c0781186269dc5f668e76ecea82030dde3 Author: Andreas Schwab <schwab@linux-m68k.org> 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 \
reply other threads:[~2021-09-13 8:04 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210913080452.E63093858D35@sourceware.org \ --to=schwab@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).