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]

Re: Loop clean up fixes


Alexandre Oliva writes:
 > On Jan 19, 2000, Michael Hayes <m.hayes@elec.canterbury.ac.nz> wrote:
 > 
 > > +       loop->info = (struct loop_info *) alloca (sizeof (struct loop_info));
 > > +       memset (loop->info, 0, sizeof (struct loop_info));
 > 
 > Do we really have to use alloca?  Mark Mitchell has recently killed a
 > lot of situations in which it was used, in favor of
 > garbage-collectable memory regions, or at least in favor of explicit
 > memory management.  How's that for you?

I personally don't like alloca but figured that in this case we were
not allocating much memory (OK, I suppose there are pathological
functions with gazillions of loops).  I have no objections to changing
it.  Anyway, it's only an interim measure since my low-overhead
looping patches does away with the used_count_register field
altogether.

Michael.


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