From: Thomas Huth <thuth@redhat.com>
To: Cornelia Huck <cohuck@redhat.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>,
qemu-s390x@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH] configure: Check whether we can compile the s390-ccw bios with -msoft-float
Date: Tue, 25 May 2021 16:40:34 +0200 [thread overview]
Message-ID: <3a4f413f-7ce5-0d78-180c-e08b351b30df@redhat.com> (raw)
In-Reply-To: <20210525163121.6901dca2.cohuck@redhat.com>
On 25/05/2021 16.31, Cornelia Huck wrote:
> On Tue, 25 May 2021 16:20:32 +0200
> Thomas Huth <thuth@redhat.com> wrote:
>
>> The -msoft-float switch is not available in older versions of Clang.
>> Since we rely on the compiler to not generate floating point instructions
>> unexpectedly, we block those old compilers now via a test in the configure
>> script. Note that for some weird reasons, the Clang compiler only complains
>> about the missing soft-float support if no other flags are passed via
>> "-Wl,..." to the linker. So we have to use "compile_object" instead of
>> "compile_prog" for this check.
>
> Ugh.
It's maybe better to use compile_object for testing -msoft-float anyway
since it could influence the way of linking against libraries (if I get
https://reviews.llvm.org/D72189 right).
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>> configure | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/configure b/configure
>> index 676239c697..673419ff31 100755
>> --- a/configure
>> +++ b/configure
>> @@ -5462,7 +5462,7 @@ if test "$cpu" = "s390x" ; then
>> write_c_skeleton
>> compile_prog "-march=z900" ""
>> has_z900=$?
>> - if [ $has_z900 = 0 ] || compile_prog "-march=z10" ""; then
>> + if [ $has_z900 = 0 ] || compile_object "-march=z10 -msoft-float -Werror"; then
>
> Do you believe that we should have caught the various clang
> specialties now?
Apart from one compiler warning that just popped up today, yes. I'm seeing
this compiler warning with Clang 12.0 now:
roms/SLOF/lib/libnet/ipv6.c:447:18: warning: variable length array folded to
constant array as an extension [-Wgnu-folding-constant]
unsigned short raw[ip6size];
^
... not sure what to do with that one yet.
Thomas
next prev parent reply other threads:[~2021-05-25 14:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-25 14:20 [PATCH] configure: Check whether we can compile the s390-ccw bios with -msoft-float Thomas Huth
2021-05-25 14:31 ` Cornelia Huck
2021-05-25 14:40 ` Thomas Huth [this message]
2021-05-25 15:13 ` Philippe Mathieu-Daudé
2021-05-26 10:37 ` Philippe Mathieu-Daudé
2021-06-08 7:46 ` Thomas Huth
2021-06-09 12:46 ` Cornelia Huck
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=3a4f413f-7ce5-0d78-180c-e08b351b30df@redhat.com \
--to=thuth@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.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: 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 NNTP newsgroup(s).