This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Loop clean up fixes
- To: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- Subject: Re: Loop clean up fixes
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 19 Jan 2000 19:27:17 -0200
- Cc: gcc-patches at gcc dot gnu dot org
- References: <14469.40381.891348.187877@ongaonga.elec.canterbury.ac.nz>
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