From: Joseph Myers <joseph@codesourcery.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: <gcc@gcc.gnu.org>, <gdb@sourceware.org>
Subject: Re: Debugger support for __float128 type?
Date: Thu, 01 Oct 2015 20:40:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.10.1510012032480.9824@digraph.polyomino.org.uk> (raw)
In-Reply-To: <20151001172313.132825FB4@oc7340732750.ibm.com>
On Thu, 1 Oct 2015, Ulrich Weigand wrote:
> The _DecimalN types are already supported by DWARF using a base type with
> encoding DW_ATE_decimal_float and the appropriate DW_AT_byte_size.
Which doesn't actually say whether the DPD or BID encoding is used, but as
long as each architecture uses only one that's not a problem in practice.
> For the interchange type, it seems one could define a new encoding,
> e.g. DW_ATE_interchange_float, and use this together with the
> appropriate DW_AT_byte_size to identify the format.
It's not clear to me that (for example) distinguishing float and _Float32
(other than by name) is useful in DWARF (and if you change float from
DW_ATE_float to DW_ATE_interchange_float that would affect old debuggers -
is the idea to use DW_ATE_interchange_float only for the new types, not
for old types with the same encodings, so for _Float32 but not float?).
But it's true that if you say it's an interchange type then together with
size and endianness that uniquely determines the encoding.
> I'm not sure how to handle an extended decimal format that does not
> match any of the decimal interchange formats. Does this occur in
> practice at all?
I don't know, but I doubt it.
> Well, complex types have their own encoding (DW_ATE_complex_float), so we'd
> have to define the corresponding variants for those as well, e.g.
> DW_ATE_complex_interchange_float or the like.
And DW_ATE_imaginary_interchange_float, I suppose.
--
Joseph S. Myers
joseph@codesourcery.com
next prev parent reply other threads:[~2015-10-01 20:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 17:33 Ulrich Weigand
2015-09-30 20:12 ` Joseph Myers
2015-10-01 17:23 ` Ulrich Weigand
2015-10-01 20:40 ` Joseph Myers [this message]
2015-10-02 15:18 ` Ulrich Weigand
2015-10-02 15:41 ` Joseph Myers
2015-10-02 16:01 ` Ulrich Weigand
2015-09-30 22:42 ` Mark Kettenis
2015-10-01 9:46 ` Gabriel Paubert
2015-10-01 16:16 ` Ulrich Weigand
2015-10-02 9:41 ` Jonas Maebe
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=alpine.DEB.2.10.1510012032480.9824@digraph.polyomino.org.uk \
--to=joseph@codesourcery.com \
--cc=gcc@gcc.gnu.org \
--cc=gdb@sourceware.org \
--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