[committed] Fortran: Prefer GCC internal macros to float.h in ISO_Fortran_binding.h (was: [PATCH, Fortran] Revert to non-multilib-specific ISO_Fortran_binding.h)

Tobias Burnus tobias@codesourcery.com
Fri Sep 17 14:10:37 GMT 2021


On 17.09.21 08:03, Gerald Pfeifer wrote:

> On Tue, 14 Sep 2021, Gerald Pfeifer wrote:
>>> And, related, does the following make sense and fixes the issue?
>>>
>>> --- a/libgfortran/ISO_Fortran_binding.h
>>> +++ b/libgfortran/ISO_Fortran_binding.h
>>> @@ -228,5 +228,5 @@ extern int CFI_setpointer (CFI_cdesc_t *, CFI_cdesc_t *,
>>> const CFI_index_t []);
>>>
>>>   /* This is the 80-bit encoding on x86; Fortran assigns it kind 10.  */
>>> -#elif (LDBL_MANT_DIG == 64 \
>>> +#elif ((LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 53) \
>>>          && LDBL_MIN_EXP == -16381 \
>>>          && LDBL_MAX_EXP == 16384)
>> Yes, with this patch (on top of current trunk) i586-freebsd-* is back
>> in bootstrap land. :)
> Neither this (which fixes the bootstrap) nor Sandra's rewrite (which
> does not, but seemed generally liked) has been committed.
I have now committed the attached patch as r12-3621. It includes the
patch by Sandra
https://gcc.gnu.org/pipermail/gcc-patches/2021-September/579372.html
(approved 3 days ago) plus adding the "== 53" similar to above.

Hopefully, we can now close this issue.

Tobias

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
-------------- next part --------------
A non-text attachment was scrubbed...
Name: committed.diff
Type: text/x-patch
Size: 5091 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20210917/831a4019/attachment.bin>


More information about the Fortran mailing list