This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bug fix for optimize_mode_switching / NORMAL_MODE
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Joern Rennecke <joern dot rennecke at superh dot com>,gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 May 2002 10:05:04 +0200
- Subject: Re: Bug fix for optimize_mode_switching / NORMAL_MODE
- References: <20020528170853.B3599@redhat.com>
Hello.
> > Since May 2000, optimize_mode_switching has some code to pretend that
> > the exit block is an ordinary block when NORMAL_MODE is defined.
> > This does not mix with the new FOR_EACH_BB / FOR_EACH_BB_REVERSE macros.
> > We can either restore lcm to the state where it doesn't fiddle with the
> > basic block array, or make the FOR_EACH_BB* macros cope with that.
> > The included patch implements the latter.
>
> I'd really prefer the former, if it can be managed without
> merely exchanging one form of ugliness for another.
I really do not see into what lcm.c does; but would not creating some
sort of fake block at the end of chain and removing it later work?
Zdenek