Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ulrich Weigand via Gdb-patches <gdb-patches@sourceware.org>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Fix gdb.base/float128.exp with --with-mpfr=no
Date: Fri, 11 Dec 2020 10:17:56 +0100	[thread overview]
Message-ID: <20201211091756.GA10227@oc3748833570.ibm.com> (raw)
In-Reply-To: <20201210125334.GA1267@delia>

On Thu, Dec 10, 2020 at 01:53:35PM +0100, Tom de Vries wrote:

> When configuring gdb using --with-mpfr=no and running test-case
> gdb.base/float128.exp, we run into:
> ...
> FAIL: gdb.base/float128.exp: print large128 (GDB may be missing MPFR support!)
> ...
> 
> Fix this by detecting that gdb was build without mpfr using the show
> configuration command, and changing the FAIL into UNSUPPORTED.

That part looks OK to me, but ...

> +       if { $mpfr_supported == 0 } {
> +	   if { [istarget "s390*-*-*"] || [istarget "powerpc*-*-*"] } {
> +	       # Some of these archs have native 128-bit float support, in
> +	       # which case this should be passing, even without MPFR support.
> +	       fail $test
> +	   } else {
> +	       unsupported "$test (Missing MPFR support)"
> +	   }

... the istarget check isn't quite right - if we want a check like that,
it needs to check whether the *host* platform GDB is running on supports
native 128-bit floats; the istarget check tests the target architecture
(which will be different when testing a cross-debugging scenario).

But I'm not sure we really need that check, I'd be fine with just always
returning unsupported here when GDB is compiled explicitly without MPFR
support (and the test fails).

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com

  parent reply	other threads:[~2020-12-11  9:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-10 12:53 Tom de Vries
2020-12-10 13:08 ` Luis Machado via Gdb-patches
2020-12-11  9:17 ` Ulrich Weigand via Gdb-patches [this message]
2020-12-11 12:56   ` Tom de Vries

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=20201211091756.GA10227@oc3748833570.ibm.com \
    --to=gdb-patches@sourceware.org \
    --cc=tdevries@suse.de \
    --cc=uweigand@de.ibm.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