This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix cgraph reading seen in Mozila LTO build
> On Sun, 4 Jul 2010, Jan Hubicka wrote:
>
> > Hi,
> > mozilla build fails with streamer getting out of sync. This is because of input_edge
> > condition ignoring edges for preemted nodes. This is wrong, since then we get out of
> > sync reading bitpack and even if we fix that we get out of sync later reading jump functions.
> >
> > The overall idea always has been to read everythign it and then throw away
> > stuff during merging. This patch and additional fix to lto-symtab lets me to
> > build the Mozilla's javascript interpretter with LTO (but not with WHOPR because
> > of unrelated bug elsewhere).
> >
> > Bootstrapped/regtested x86_64-linux, OK?
>
> Ok. What's the fix to lto-symbtab?
Basically entry->node pointer currently points to cgraph node (not to alias in case of alias
declaration), while in varpool it points to the alias.
When merging, we attempt do varous things trying to keep things intact and we end up with
loosing the alias.
I changed it to have entry->node to be always the node or alias node corresponding to symbol
and made merge_cgrpah_nodes to handle aliases.
I will clean the patch up somehow and once I get past current problem
and ensure it works, I will send it.
Honza