This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [rtlopt] fix bootstrap error
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Nov 2002 14:05:46 +0100
- Subject: Re: [rtlopt] fix bootstrap error
- References: <20021122121745.GA2704@kam.mff.cuni.cz>
> 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