This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Fix a few remaining -Wc++-compat warnings
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, dnovillo at google dot com, gdr at integrable-solutions dot net, iant at google dot com, richard dot guenther at gmail dot com
- Date: Thu, 26 Jun 2008 08:49:32 -0700
- Subject: Re: [PATCH]: Fix a few remaining -Wc++-compat warnings
- References: <Pine.GSO.4.58.0806261127310.24161@caipclassic.rutgers.edu>
On Thu, Jun 26, 2008 at 11:29:59AM -0400, Kaveh R. GHAZI wrote:
> --- orig/egcc-SVN20080626/gcc/alloc-pool.c 2008-03-14 00:39:19.000000000 +0100
> +++ egcc-SVN20080626/gcc/alloc-pool.c 2008-06-26 09:47:46.000000000 +0200
> @@ -145,7 +145,7 @@ create_alloc_pool (const char *name, siz
> pool_size = sizeof (struct alloc_pool_def);
This assignment and variable appear to be unnecessary now.
> /* and allocate that much memory. */
> - pool = xmalloc (pool_size);
> + pool = XNEW (struct alloc_pool_def);
-Nathan