This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [exception patch]: Throw bad alloc
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Subject: Re: [exception patch]: Throw bad alloc
- From: Jason Merrill <jason at cygnus dot com>
- Date: 31 May 2000 00:48:10 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <3933BDB8.1CDD8D03@codesourcery.com>
>>>>> Nathan Sidwell <nathan@codesourcery.com> writes:
> + extern void *
> + __eh_alloc (size_t size)
No 'extern'.
> + size_t diff = (size_t)((char *)p - &eh->alloc_buffer[0]);
This should be ptrdiff_t.
Otherwise, OK.
Jason