[PATCH] Update newlib so that it passes libc++'s tests
JF Bastien
jfb@chromium.org
Tue Dec 17 04:59:00 GMT 2013
Fix issues that LLVM's libc++ test suite finds when setting newlib as
the C library:
- limits.h: define LLONG_MIN, LLONG_MAX and ULLONG_MAX for C++11 too.
- stdint.h: define WCHAR_MIN and WCHAR_MAX according to
__WCHAR_UNSIGNED__ if it is provided, and correct the limit when
unsigned (to 32 all-1 bits, not 31). Make sure stdint.h and wchar.h
are in sync.
- stdint.h: similarly for WINT_MIN and WINT_MAX according to
__WINT_UNSIGNED__.
- stdlib.h: define struct lldiv_t, _Exit, atoll, llabs and lldiv for
C99 and C++11.
- stdlib.h: move wcstold to wchar.h.
- wchar.h: define WCHAR_MIN and WCHAR_MAX according to
__WCHAR_UNSIGNED__ if it is provided, and correct the limit when
unsigned (to 32 all-1 bits, not 31). Make sure stdint.h and wchar.h
are in sync.
- wchar.h: define file as in stdio.h.
- stdlib.h: move wcstold from stdlib.h.
Note that libc++ also needs changes to adapt to newlib's C flavor, I'm
sending a separate patch to the cfe-commits@cs.uiuc.edu mailing list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc++.patch
Type: text/x-patch
Size: 6226 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20131217/6e330727/attachment.bin>
More information about the Newlib
mailing list