This is the mail archive of the newlib@sourceware.org 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]
Other format: [Raw text]

No locale definition (was smaller ramsize for newlib-nano builds)


I am in the process of removing global locale definitions from newlib libc.

I am doing this in different steps:

 

First I removed all access to members of the struct __locale_t from folders
within libc, but outside libc/locale and libc/ctype and replace them by
macros in setlocale.h

Second I adapted the configuration that _NO_LOCALE can be defined by
./configure --disable-newlib-locale in the libc compilation

Third, in the folder clib/ctype, I removed access to the
__locale_ctype_ptr_l() and __locale_ctype_ptr() functions

Last, in the folder clib/locale, I removed access to the __locale_t struct
if _NO_LOCALE is defined.

 

At this moment I build an entire toolchain after each step (with -Werror for
newlib), to be able to test the progress, so it takes some time before I am
ready.

I am not ready yet, but when I am ready, is it preferred that I make
different patches (one of each step), or should I post one patch?

 

Jaap de Wolff

 


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