public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ PATCH] Add chain_next GTY markup to struct tinst_level
@ 2011-06-08 18:56 Jakub Jelinek
  2011-06-08 20:04 ` Jason Merrill
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2011-06-08 18:56 UTC (permalink / raw)
  To: Jason Merrill; +Cc: gcc-patches

Hi!

We shouldn't recurse in GC to mark tinst_level chain,
it is IMHO better to iterate through the chain instead.
Bootstrapped/regtested on x86_64-linux and i686-linux,
ok for trunk?

2011-06-08  Jakub Jelinek  <jakub@redhat.com>

	* cp-tree.h (struct tinst_level): Add chain_next GTY
	markup.

--- gcc/cp/cp-tree.h.jj	2011-05-31 08:03:00.000000000 +0200
+++ gcc/cp/cp-tree.h	2011-06-08 16:31:28.000000000 +0200
@@ -4635,7 +4635,7 @@ struct cp_declarator {
 };
 
 /* A level of template instantiation.  */
-struct GTY(()) tinst_level {
+struct GTY((chain_next ("%h.next"))) tinst_level {
   /* The immediately deeper level in the chain.  */
   struct tinst_level *next;
 

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [C++ PATCH] Add chain_next GTY markup to struct tinst_level
  2011-06-08 18:56 [C++ PATCH] Add chain_next GTY markup to struct tinst_level Jakub Jelinek
@ 2011-06-08 20:04 ` Jason Merrill
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2011-06-08 20:04 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: gcc-patches

OK.

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-08 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 18:56 [C++ PATCH] Add chain_next GTY markup to struct tinst_level Jakub Jelinek
2011-06-08 20:04 ` Jason Merrill

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).