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]

Re: [rtlopt] fix bootstrap error


> Hi,
> bootstrap dies because bb-reorder creates chain not starting in basic
> block 0.
> 
> Honza
> Fri Nov 22 13:16:16 CET 2002  Jan Hubicka  <jh@suse.cz>
> 	* bb-reorder.c (connect_traces): Never connect something before trace 0.
> Index: bb-reorder.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/bb-reorder.c,v
> retrieving revision 1.50.2.2
> diff -c -3 -p -r1.50.2.2 bb-reorder.c
> *** bb-reorder.c	21 Nov 2002 23:59:38 -0000	1.50.2.2
> --- bb-reorder.c	22 Nov 2002 12:15:14 -0000
> *************** connect_traces (n_traces, traces)
> *** 659,692 ****
>   	  connected[t] = true;
>   
>   	  /* Find the predecessor traces.  */
> ! 	  for (t2 = t; t2 >= 0;)

Oops, there should have been " for (t2 = t; t2 > 0;) "

Pepa


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