ERROR in libc/stdlib/mallocr.c???
Corinna Vinschen
vinschen@redhat.com
Tue Aug 21 14:14:00 GMT 2001
On Tue, Aug 21, 2001 at 04:27:44PM -0400, J. Johnston wrote:
> Corinna Vinschen wrote:
> >
> > On Thu, Aug 16, 2001 at 07:43:36PM -0400, J. Johnston wrote:
> > > Option 3 is reasonable but should be modified to not affect platforms that have
> > > size_t > 4.
> > >
> > > #define SIZE_SZ (sizeof(INTERNAL_SIZE_T))
> > > #ifndef MALLOC_ALIGNMENT
> > > #define MALLOC_ALIGNMENT (SIZE_SZ < 4 ? 8 : (SIZE_SZ + SIZE_SZ))
> > > #endif
> > > #define MALLOC_ALIGN MALLOC_ALIGNMENT
> >
> > Do you check that in?
> >
> > Corinna
> >
>
> Nope. It didn't work because when I use MALLOC_ALIGN later in a #if, it fails because I am using
> the sizeof operator. I have modified the change to still do the conditional on MALLOC_ALIGNMENT but
> the default MALLOC_ALIGN remains at 8. It has just been checked in.
>
> -- Jeff J.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com
More information about the Newlib
mailing list