public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] ree.c: don't abuse GTY
@ 2012-12-07  0:06 Steven Bosscher
  2012-12-07  9:08 ` Richard Biener
  0 siblings, 1 reply; 8+ messages in thread
From: Steven Bosscher @ 2012-12-07  0:06 UTC (permalink / raw)
  To: GCC Patches

Hello,

ree.c's data structures are not GC-allocated, so its GTY markers and
its TODO_ggc_collect are unnecessary.

Will commit as obvious after the usual testing on my favourite platforms :-)

        * ree.c (struct ext_cand): Remove GTY markers.
        (pass_ree): Remove TODO_ggc_collect.

Index: ree.c
===================================================================
--- ree.c       (revision 194247)
+++ ree.c       (working copy)
@@ -243,7 +243,7 @@

 /* This structure represents a candidate for elimination.  */

-typedef struct GTY(()) ext_cand
+typedef struct ext_cand
 {
   /* The expression.  */
   const_rtx expr;
@@ -958,7 +958,6 @@
   0,                                    /* properties_provided */
   0,                                    /* properties_destroyed */
   0,                                    /* todo_flags_start */
-  TODO_ggc_collect |
   TODO_verify_rtl_sharing,              /* todo_flags_finish */
  }
 };

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

end of thread, other threads:[~2012-12-07 11:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-07  0:06 [patch] ree.c: don't abuse GTY Steven Bosscher
2012-12-07  9:08 ` Richard Biener
2012-12-07  9:43   ` Steven Bosscher
2012-12-07  9:53     ` Steven Bosscher
2012-12-07  9:58       ` Jakub Jelinek
2012-12-07 10:26         ` Steven Bosscher
2012-12-07 10:34           ` Jakub Jelinek
2012-12-07 11:36             ` Steven Bosscher

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