From: Andrew Burgess <andrew.burgess@embecosm.com>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCHv2] gdb/fortran: Use floatformats_ia64_quad for fortran 16-byte floats
Date: Tue, 21 May 2019 20:10:00 -0000 [thread overview]
Message-ID: <20190521201028.GG2568@embecosm.com> (raw)
In-Reply-To: <87woijeo0r.fsf@tromey.com>
* Tom Tromey <tromey@adacore.com> [2019-05-21 13:05:40 -0400]:
> Andrew> Sorry for breaking this.
>
> Thanks! Don't feel too bad, though, I think the occasional bug like
> this is going to creep in.
>
> Andrew> Or maybe we should be even more restrictive, and only use long double
> Andrew> format if its the correct length, like:
>
> This seems to make the most sense to me, but I don't actually know
> Fortran, so I'm just guessing.
Honestly, I don't know the specifics here either. I suspect the real
answer is that different targets and maybe even different Fortran
compilers could use different formats for 16-byte floats.
The intention with my change was to allow each target to find
something suitable (clearly that didn't quite work). I think falling
back to long double means we're no worse off than we were.
If long double turns out to be wrong for other targets they can always
implement gdbarch_floatformat_for_type like i386 does.
Would you like me to push a fix, or do you want to do it?
Thanks,
Andrew
next prev parent reply other threads:[~2019-05-21 20:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-04 12:17 [PATCH] " Andrew Burgess
2019-05-16 16:01 ` [PATCHv2] " Andrew Burgess
2019-05-18 8:54 ` Andrew Burgess
2019-05-21 16:06 ` Tom Tromey
2019-05-21 16:53 ` Andrew Burgess
2019-05-21 17:05 ` Tom Tromey
2019-05-21 20:10 ` Andrew Burgess [this message]
2019-05-21 20:18 ` Tom Tromey
2019-05-21 22:56 ` Andrew Burgess
2019-05-22 16:56 ` Tom Tromey
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=20190521201028.GG2568@embecosm.com \
--to=andrew.burgess@embecosm.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@adacore.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