public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <tobias@codesourcery.com>
To: Gerald Pfeifer <gerald@pfeifer.com>,
	Sandra Loosemore <sandra@codesourcery.com>,
	Andreas Tobler <andreast@FreeBSD.org>
Cc: <fortran@gcc.gnu.org>, <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH, Fortran] Revert to non-multilib-specific ISO_Fortran_binding.h
Date: Mon, 13 Sep 2021 18:32:56 +0200	[thread overview]
Message-ID: <b7b5e145-f4ae-5529-b1b1-149eeb65f11f@codesourcery.com> (raw)
In-Reply-To: <4c32e0e7-7156-835a-30b-ada8c4b4482d@pfeifer.com>

Hi Gerald,

On 13.09.21 17:56, Gerald Pfeifer wrote:
> This broke bootstrap on i586-unknown-freebsd11:
>
>    In file included from .../GCC-HEAD/libgfortran/runtime/ISO_Fortran_binding.c:30:
>    .../GCC-HEAD/libgfortran/ISO_Fortran_binding.h:255:2:
>    error: #error "Can't determine kind of long double"
>    255 | #error "Can't determine kind of long double"
>        |  ^~~~~
>
> Does this work on i586-*-linux?
>
>
> % egrep -r '#define.*LDBL_(MANT_DIG|MIN_EXP|MAX_EXP)' /usr/include/
> /usr/include/x86/float.h:#define LDBL_MANT_DIG  64
> /usr/include/x86/float.h:#define LDBL_MIN_EXP   (-16381)
> /usr/include/x86/float.h:#define LDBL_MAX_EXP   16384
>
> This looks like it matches existing Linux case already in place?

Can you run 'echo | cpp -E -g3|grep DBL' to (or in the build dir: echo |
./gcc/cc1 -E -g3 -dD|grep DBL) to check what's the output?

It might be that /usr/include/x86/float.h is not used; e.g. there is
$(gcc-src)/ginclude/float.h which undef's the LDBL_MAX_EXP to replace it
by a #define using __LDBL_MAX_EXP. Thus, if those are different from the
values under /usr/include, it might be the reason for the fail?

I think it works under Linux, at least the "x86-64 -m32"
libgfortran.{so,a}  build and the -m32 testsuite runs do work.

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

  reply	other threads:[~2021-09-13 16:33 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19  2:57 Sandra Loosemore
2021-09-03  2:05 ` PING " Sandra Loosemore
2021-09-06 19:29 ` Tobias Burnus
2021-09-10 15:39 ` Andreas Schwab
2021-09-13  7:51   ` Tobias Burnus
2021-09-13 15:56 ` Gerald Pfeifer
2021-09-13 16:32   ` Tobias Burnus [this message]
2021-09-13 16:51     ` Jakub Jelinek
2021-09-13 16:59       ` Sandra Loosemore
2021-09-13 17:07         ` Tobias Burnus
2021-09-13 17:20           ` Jakub Jelinek
2021-09-14  3:39           ` Sandra Loosemore
2021-09-14  7:39             ` Tobias Burnus
2021-09-14 16:34             ` Gerald Pfeifer
2021-09-14 14:50     ` Gerald Pfeifer
2021-09-14 15:16       ` Tobias Burnus
2021-09-14 15:17       ` Andreas Schwab
2021-09-14 15:23         ` Jakub Jelinek
2021-09-14 15:30           ` Andreas Schwab
2021-09-15  1:05             ` Joseph Myers
2021-09-14 19:27           ` Gerald Pfeifer
2021-09-17  6:03             ` Gerald Pfeifer
2021-09-17 14:10               ` [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
2021-09-18  4:51                 ` Gerald Pfeifer
2021-09-13 17:39   ` [PATCH, Fortran] Revert to non-multilib-specific ISO_Fortran_binding.h Andreas Schwab
2021-09-13 18:07   ` Jakub Jelinek

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=b7b5e145-f4ae-5529-b1b1-149eeb65f11f@codesourcery.com \
    --to=tobias@codesourcery.com \
    --cc=andreast@FreeBSD.org \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gerald@pfeifer.com \
    --cc=sandra@codesourcery.com \
    /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: link
Be 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).