This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [exception patch]: Throw bad alloc


>>>>> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]