public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@codesourcery.com>
To: " Doug Kwan " <dougkwan@google.com>
Cc: "Mark Mitchell" <mark@codesourcery.com>,
		  "Kenneth Zadeck" <zadeck@naturalbridge.com>,
		  "Andrew Pinski" <pinskia@gmail.com>,
	 gcc-patches@gcc.gnu.org,
		  "Diego Novillo" <dnovillo@google.com>,
		  "Nathan Froyd" <froydnj@codesourcery.com>
Subject: Re: [LTO][PATCH] Fix long double precision problem
Date: Thu, 13 Dec 2007 22:43:00 -0000	[thread overview]
Message-ID: <m3odcup70b.fsf@codesourcery.com> (raw)
In-Reply-To: <498552560712131231k785883e7mfb40b1636008a51b@mail.gmail.com> (Doug Kwan's message of "Thu, 13 Dec 2007 12:31:47 -0800")


""Doug Kwan (關振德)"" <dougkwan at google.com> writes:
>    What about complex long double? There are padding bits between the
> real and imaginary parts.

My understanding is that the base types are not meant to completely
specify how the debugger should interpret a type it's never seen
before; they're just meant to distinguish the source language's base
types.  For example, DWARF just has DW_ATE_float, not
DW_ATE_ieee_float, nor DW_ATE_float with DW_AT_mantissa_bits and
DW_AT_exponent_bias.  Once the DWARF has identified the type, it's up
to the ABI to specify the details of its representation.

Under that interpretation, all GCC should do for long double complex
is emit a DW_TAG_base_type with DW_ATE_complex_float and
DW_AT_byte_size == 24.  That's enough to distinguish long double
complex from double complex or float complex.  It's not necessary for
the DWARF to explicitly mention the 80-bit length if the ABI dictates
that for a lone 24-byte complex type.  (Do you also have a full
12-byte floating point complex format that would be ambiguous with
that?)

But that interpretation doesn't square too well with providing data
like DW_AT_bit_size and DW_AT_bit_offset.  So the interpretation is
unclear to me.  I don't remember this coming up; it may simply not
have been considered.

  reply	other threads:[~2007-12-13 22:25 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-05  7:05 Doug Kwan (關振德)
2007-12-05 10:52 ` Andrew Pinski
2007-12-05 12:55   ` Kenneth Zadeck
2007-12-05 14:56     ` Diego Novillo
2007-12-05 16:28       ` Doug Kwan (關振德)
2007-12-05 19:02         ` Andrew Pinski
2007-12-05 16:34     ` Mark Mitchell
2007-12-05 18:42       ` Doug Kwan (關振德)
2007-12-05 19:01       ` Doug Kwan (關振德)
2007-12-05 23:52         ` Mark Mitchell
2007-12-11 23:15           ` Doug Kwan (關振德)
2007-12-12  9:22             ` Mark Mitchell
2007-12-12 20:23               ` Doug Kwan (關振德)
2007-12-12 20:45                 ` Mark Mitchell
2007-12-13  2:27                   ` Doug Kwan (關振德)
2007-12-13 11:02                     ` Andreas Schwab
2007-12-13 19:13                       ` Doug Kwan (關振德)
2007-12-14  9:50                         ` Andreas Schwab
2007-12-14 22:18                           ` Doug Kwan (關振德)
2007-12-13 20:11                   ` Jim Blandy
2007-12-13 20:40                     ` Doug Kwan (關振德)
2007-12-13 22:43                       ` Jim Blandy [this message]
     [not found]                         ` <4765FBC0.8020400@codesourcery.com>
2007-12-17 21:53                           ` Doug Kwan (關振德)
2007-12-18  4:29                             ` Mark Mitchell

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=m3odcup70b.fsf@codesourcery.com \
    --to=jimb@codesourcery.com \
    --cc=dnovillo@google.com \
    --cc=dougkwan@google.com \
    --cc=froydnj@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mark@codesourcery.com \
    --cc=pinskia@gmail.com \
    --cc=zadeck@naturalbridge.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).