[tree-ssa] Let ggc know about factored_computed_goto

S. Bosscher S.Bosscher@student.tudelft.nl
Mon Dec 8 13:39:00 GMT 2003


> 	* tree-cfg.c (factored_computed_goto_label, factored_computed_goto):
> 	Export.
> 	* tree-flow.h (factored_computed_goto_label,
factored_computed_goto):
> 	Mark as gc root.

Ehm, no need to export then AFAICT.  Why not just add the GTY markers, ie.

Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.232
diff -c -3 -p -r1.1.4.232 tree-cfg.c
*** tree-cfg.c	7 Dec 2003 20:18:55 -0000	1.1.4.232
--- tree-cfg.c	8 Dec 2003 12:40:55 -0000
*************** static bool found_computed_goto;
*** 78,88 ****
  /* If we found computed gotos, then they are all revectored to this
     location.  We try to unfactor them after we have translated out
     of SSA form.  */
! static tree factored_computed_goto_label;
  
  /* The factored computed goto.  We cache this so we can easily recover
     the destination of computed gotos when unfactoring them.  */
! static tree factored_computed_goto;
  
  /* The root of statement_lists of basic blocks for the garbage collector.
     This is a hack; we really should GC the entire CFG structure.  */
--- 78,88 ----
  /* If we found computed gotos, then they are all revectored to this
     location.  We try to unfactor them after we have translated out
     of SSA form.  */
! static GTY(()) tree factored_computed_goto_label;
  
  /* The factored computed goto.  We cache this so we can easily recover
     the destination of computed gotos when unfactoring them.  */
! static GTY(()) tree factored_computed_goto;
  
  /* The root of statement_lists of basic blocks for the garbage collector.
     This is a hack; we really should GC the entire CFG structure.  */
  




More information about the Gcc-patches mailing list