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


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?

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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