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

Bin Cheng bin.cheng@arm.com
Thu Apr 11 08:10:00 GMT 2013


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.





More information about the Newlib mailing list