This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix gengtype wrt BB references


Hi,
currently the basic block structures referenced only via INSNs are
garbage collected out (this can happen as we don't clear/set properly
the BB pointers for INSNs outside basic blocks).  This seem to pass
currently as only place we refer to these are the insn insertion
functions that compare pointers for equality and nothing compare to
abababa pointers, but it breaks interesting way my followup patch and is
definitly ommision.

Bootstrapped/regtested i686-pc-gnu-linux.

2005-06-10  Jan Hubicka  <jh@suse.cz>
	* gengtype.c (adjust_field_rtx_def): Basic blocks are no longer skipped.
Index: gengtype.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype.c,v
retrieving revision 1.75
diff -c -3 -p -r1.75 gengtype.c
*** gengtype.c	17 May 2005 20:11:42 -0000	1.75
--- gengtype.c	10 Jun 2005 12:09:55 -0000
*************** adjust_field_rtx_def (type_p t, options_
*** 628,641 ****
  	      subfields->opt->name = "desc";
  	      subfields->opt->info = "NOTE_LINE_NUMBER (&%0)";
  	    }
- 	  else if (t == basic_block_tp)
- 	    {
- 	      /* We don't presently GC basic block structures...  */
- 	      subfields->opt = XNEW (struct options);
- 	      subfields->opt->next = nodot;
- 	      subfields->opt->name = "skip";
- 	      subfields->opt->info = NULL;
- 	    }
  	  else
  	    subfields->opt = nodot;
  	}
--- 628,633 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]