This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
No locale definition (was smaller ramsize for newlib-nano builds)
- From: "Jaap de Wolff" <info at jasoon dot nl>
- To: <newlib at sourceware dot org>
- Date: Thu, 8 Feb 2018 19:14:41 +0100
- Subject: No locale definition (was smaller ramsize for newlib-nano builds)
- Authentication-results: sourceware.org; auth=none
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