This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


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

Re: ERROR in libc/stdlib/mallocr.c???


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.


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