This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: malloc-based ggc-page
On Jan 18, 2000, Richard Henderson <rth@cygnus.com> wrote:
> On Tue, Jan 18, 2000 at 12:02:33PM -0800, Mark Mitchell wrote:
>> Then, I would still suggest that you implement valloc in libiberty.
> I'd suggest putting gnu malloc in there. No sense futzing
> about with an inferior malloc/valloc combination when we
> can just replace both.
But we can't always replace malloc, can we? I mean, there are still
parts of gcc that do call malloc() explicitly, and we can't just
replace malloc(), we'd have to give it some other name. Not that this
is a problem, it's just something to worry about.
A real problem is that some library calls do use malloc, and then,
they'd be using their own malloc. So I'd rather not go down this
road.
--
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