This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C++ PATCH: Builtins (2 of 3)
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: C++ PATCH: Builtins (2 of 3)
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Thu, 24 May 2001 20:33:36 -0400
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- References: <20010524181752Z.mitchell@codesourcery.com>
On Thu, May 24, 2001 at 06:17:52PM -0700, Mark Mitchell wrote:
> and a use of `memset' in libsupc++ that should have been
> `std::memset'.
Shouldn't we also do the following? It's including <cstdlib> not <stdlib.h>,
so malloc and free should be qualified. (Also abort(), but that's trickier.)
Index: eh_alloc.cc
===================================================================
101c101
< ret = malloc (thrown_size);
---
> ret = std::malloc (thrown_size);
161c161
< free (ptr - sizeof (__cxa_exception));
---
> std::free (ptr - sizeof (__cxa_exception));