public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Michael Matz <matz@suse.de>
To: Nathan Froyd <froydnj@codesourcery.com>
Cc: Diego Novillo <dnovillo@google.com>,
	gcc-patches@gcc.gnu.org,	java-patches@gcc.gnu.org
Subject: Re: [PATCH] split tree_type, a.k.a. "tuplifying types"
Date: Tue, 10 May 2011 21:13:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.64.1105102310090.1989@wotan.suse.de> (raw)
In-Reply-To: <20110510175015.GY23480@codesourcery.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1063 bytes --]

Hi,

On Tue, 10 May 2011, Nathan Froyd wrote:

> > > +  /* Do not stream TYPE_POINTER_TO or TYPE_REFERENCE_TO.  */
> > 
> > Add some wording as to why not?  This was copied from existing
> > comments, but I do not remember why we were doing this.  Not too
> > critical, anyway.
> 
> I'm not entirely sure; I'm not intimately familiar with how LTO
> streaming works. lto.c's lto_ft_type and lto_ft_common purport to
> recreate TYPE_{POINTER,REFERENCE}_TO, but I don't immediately see how
> that's supposed to work.  I can imagine that we ought to be able to
> recreate those fields after reading everything in, and that's why don't
> stream them; I just don't know where that's done.

That is correct.  As soon as we read in a POINTER_TYPE or REFERENCE_TYPE 
we'll reconstruct the target type's TYPE_{POINTER,REFERENCE}_TO fields as 
being the trees we just process.  Type merging would have to overwrite 
them anyway, so it actually saves time and space to not stream or 
reconstruct them, just to have them overwritten during type merging.


Ciao,
Michael.

  parent reply	other threads:[~2011-05-10 21:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 16:16 Nathan Froyd
2011-05-10 16:54 ` Mike Stump
2011-05-10 17:28 ` Diego Novillo
     [not found]   ` <20110510175015.GY23480@codesourcery.com>
2011-05-10 21:13     ` Michael Matz [this message]
2011-05-10 19:28 ` Tom Tromey
2011-05-12  1:39 ` Jason Merrill

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=Pine.LNX.4.64.1105102310090.1989@wotan.suse.de \
    --to=matz@suse.de \
    --cc=dnovillo@google.com \
    --cc=froydnj@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=java-patches@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).