public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] GTY chain_next annotate gimple_statement_base
@ 2012-08-20  9:03 Richard Guenther
  0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2012-08-20  9:03 UTC (permalink / raw)
  To: gcc-patches


This creates better marking code (even though we probably tail-recurse
for the exising one).

Bootstrapped and tested on x86-64-unknown-linux-gnu, applied.

Richard.

2012-08-20  Richard Guenther  <rguenther@suse.de>

	* gimple.h (gimple_statement_base): Annotate with GTY chain_next.

Index: gcc/gimple.h
===================================================================
--- gcc/gimple.h	(revision 190523)
+++ gcc/gimple.h	(working copy)
@@ -151,7 +151,7 @@ typedef struct
 /* Data structure definitions for GIMPLE tuples.  NOTE: word markers
    are for 64 bit hosts.  */
 
-struct GTY(()) gimple_statement_base {
+struct GTY((chain_next ("%h.next"))) gimple_statement_base {
   /* [ WORD 1 ]
      Main identifying code for a tuple.  */
   ENUM_BITFIELD(gimple_code) code : 8;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-20  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-20  9:03 [PATCH] GTY chain_next annotate gimple_statement_base Richard Guenther

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