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]

[PATCH newlib]New configuration option disable wide orientation in Newlib


Hi,
C99 introduces wide orientation which is implemented in Newlib. This patch
introduces new option "--disable-newlib-wide-orient" allowing user to
disable it and reduce foot-print of binary. It also skips compilation of
wide orientation related files/functions. Is it OK?

The default behavior is not changed unless "--disable-*" option is specified
explicitly when configuring.
Any comments are welcome.

Thanks.

2013-04-11  Bin Cheng  <bin.cheng@arm.com>
	* acconfig.h (_WCHAR_ORIENT): Undef
	* newlib.hin (_WCHAR_ORIENT): Undef
	* configure.in (--enable-newlib-wchar-orient): New option.
	* configure: Regenerated.
	* libc/configure.in (--enable-newlib-wchar-orient): New option.
	* libc/configure: Regenerated.
	* libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Use.
	* libc/stdio/Makefile.in: Regenerated.
	* libc/stdio/local.h (ORIENT): Use _WCHAR_ORIENT to control
	the definition. Add alternative definition.
	* libc/stdio/vfprintf.c (__sfputs_r, __sprint_r): Use _WCHAR_ORIENT
        to control the wide char output.




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