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: Bug fix for optimize_mode_switching / NORMAL_MODE


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


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