* [pph] Append DECL_CONTEXT of global namespace to cache in preload (issue4629081)
@ 2011-06-29 0:59 Gabriel Charette
2011-06-29 1:31 ` Diego Novillo
0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Charette @ 2011-06-29 0:59 UTC (permalink / raw)
To: reply, crowl, dnovillo, gcc-patches
We need members of the global namespace to point to the global translation unit decl.
Thus we will append DECL_CONTEXT of global namespace to cache in preload.
This doesn't fix any tests, but helps towards making the tree nodes identicals in pph-mode.
Tested with bootstrap build and pph regression testing.
2011-06-28 Gabriel Charette <gchare@google.com>
* pph-streamer.c (pph_preload_common_nodes):
Append DECL_CONTEXT of global_namespace to cache.
diff --git a/gcc/cp/pph-streamer.c b/gcc/cp/pph-streamer.c
index c62864a..b7ad486 100644
--- a/gcc/cp/pph-streamer.c
+++ b/gcc/cp/pph-streamer.c
@@ -91,6 +91,8 @@ pph_preload_common_nodes (struct lto_streamer_cache_d *cache)
}
lto_streamer_cache_append (cache, global_namespace);
+
+ lto_streamer_cache_append (cache, DECL_CONTEXT (global_namespace));
}
--
This patch is available for review at http://codereview.appspot.com/4629081
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [pph] Append DECL_CONTEXT of global namespace to cache in preload (issue4629081)
2011-06-29 0:59 [pph] Append DECL_CONTEXT of global namespace to cache in preload (issue4629081) Gabriel Charette
@ 2011-06-29 1:31 ` Diego Novillo
0 siblings, 0 replies; 2+ messages in thread
From: Diego Novillo @ 2011-06-29 1:31 UTC (permalink / raw)
To: Gabriel Charette; +Cc: reply, crowl, gcc-patches
On Tue, Jun 28, 2011 at 18:37, Gabriel Charette <gchare@google.com> wrote:
> 2011-06-28 Gabriel Charette <gchare@google.com>
>
> * pph-streamer.c (pph_preload_common_nodes):
> Append DECL_CONTEXT of global_namespace to cache.
OK.
Diego.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-28 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29 0:59 [pph] Append DECL_CONTEXT of global namespace to cache in preload (issue4629081) Gabriel Charette
2011-06-29 1:31 ` Diego Novillo
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).