890c8ed6ef773160cd6840a92e0d469fe530871f |
|
22-Mar-2013 |
Elliott Hughes <enh@google.com> |
Fix builds where _FORTIFY_SOURCE is off. Also add a more intention-revealing guard so we don't have loads of places checking whether our inlining macro is defined. Change-Id: I168860cedcfc798b07a5145bc48a125700265e47
|
7582a9c119a4e4d0c306996b2513205889a9fb6c |
|
07-Feb-2013 |
Elliott Hughes <enh@google.com> |
Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs. Also update the x86 asm.h to support this; we need it for libm assembler anyway. Also clean up the _FBSDID hack in <sys/cdefs.h>. Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
|
24fad01755d33e6772ea3be56b702570bf257d55 |
|
04-Feb-2013 |
Elliott Hughes <enh@google.com> |
Document the mallinfo struct, add missing attributes. Change-Id: Ia97acce1f6a83bd8b3ba8dd20efd962bc96f35a9
|
a0ee07829a9ba7e99ef68e8c12551301cc797f0f |
|
31-Jan-2013 |
Elliott Hughes <enh@google.com> |
Upgrade libm. This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies the set of functions we support on ARM, MIPS, and x86, fixes "long double", adds ISO C99 support, and adds basic unit tests. It turns out that our "long double" functions have always been broken for non-normal numbers. This patch fixes that by not using the upstream implementations and just forwarding to the regular "double" implementation instead (since "long double" on Android is just "double" anyway, which is what BSD doesn't support). All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64. Bug: 3169850 Bug: 8012787 Bug: https://code.google.com/p/android/issues/detail?id=6697 Change-Id: If0c343030959c24bfc50d4d21c9530052c581837
|
c1b44ecc5385e68e81667068e03b32c2084a85b1 |
|
17-Oct-2012 |
David 'Digit' Turner <digit@android.com> |
Revert "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>" This creates build issues in the internal Android tree. Will investigate later. Original patch: https://android-review.googlesource.com/#/c/38875/ Change-Id: I12c5995ebf172890051af42a5d3b31014c9c5117
|
c124baaf29a948fd8b93e7f1fefc20b659271026 |
|
12-Jul-2012 |
David 'Digit' Turner <digit@android.com> |
libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h> This patch updates the C library headers to provide ucontext_t definitions for three architectures. + Fix <signal.h> to always define 'struct sigcontext'. The new declarations are announced with new macros defined in <sys/cdefs.h> in order to make it easier to adapt client code that already defines its own, incompatible, versions of the structures seen here. http://code.google.com/p/android/issues/detail?id=34784 Change-Id: Ie78c48690a4ce61c50593f6c39639be7fead3596
|
829c089f83ddee37203b52bcb294867a9ae7bdbc |
|
29-Aug-2012 |
Nick Kralevich <nnk@google.com> |
disable _FORTIFY_SOURCE under clang Clang and _FORTIFY_SOURCE are just plain incompatible with each other. First of all, clang doesn't understand the __attribute__((gnu_inline)) header. Second of all, Clang doesn't have support for __builtin_va_arg_pack() and __builtin_va_arg_pack_len() (see http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc) Until we can resolve these issues, don't even try using _FORTIFY_SOURCE under clang. Change-Id: I81c2b8073bb3276fa9a4a6b93c427b641038356a
|
5fec211f6064adaff361c051a627198157b2c37b |
|
04-Aug-2012 |
Shih-wei Liao <sliao@google.com> |
Revert "Fix the clang build: this compiler doesn't support the gnu_inline function attribute" This reverts commit 4f1f149c3757c594f9ff987e5ddd919c3e7dba10.
|
2b7f68c03df9df33708280cf3f5e8f5eba81dda6 |
|
04-Aug-2012 |
Shih-wei Liao <sliao@google.com> |
Revert "Fix the clang build: this compiler doesn't support the gnu_inline function attribute" This reverts commit 4f1f149c3757c594f9ff987e5ddd919c3e7dba10.
|
4f1f149c3757c594f9ff987e5ddd919c3e7dba10 |
|
03-Aug-2012 |
Shih-wei Liao <sliao@google.com> |
Fix the clang build: this compiler doesn't support the gnu_inline function attribute Recent clang compiler doesn't have gnu_inline working. When frameworks/rs is compiled with clang instead of gcc, it no longer works. Will be fixed by this patch. Change-Id: I8b281a1305151909e18958b73914ea27343cb4cd
|
9b6cc223a36835c4367a036d4cfeff14d25bc742 |
|
13-Jul-2012 |
Nick Kralevich <nnk@google.com> |
FORTIFY_SOURCE: introduce __BIONIC_FORTIFY_UNKNOWN_SIZE macro Replace all occurances of "(size_t) -1" with a __BIONIC_FORTIFY_UNKNOWN_SIZE macro. Change-Id: I0b188f6cf31417d2dbef0e1bd759de3f9782873a
|
71a18dd435e96564539b5af71b8ea5093a2109a1 |
|
07-Jun-2012 |
Nick Kralevich <nnk@google.com> |
_FORTIFY_SOURCE: add memset / bzero support Add _FORTIFY_SOURCE support for the following functions: * memset * bzero Move the __BIONIC_FORTIFY_INLINE definition to cdefs.h so it can be used from multiple header files. Change-Id: Iead4d5e35de6ec97786d58ee12573f9b11135bb7
|
a677907ee8ecca034318fdb97902fa73e7392c4f |
|
21-Mar-2012 |
Nick Kralevich <nnk@google.com> |
string.h: add __attribute__ ((pure)) to string functions cdefs.h: Introduce the __purefunc attribute, which allows us to mark certain functions as being "pure". http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html Many functions have no effects except the return value and their return value depends only on the parameters and/or global variables. Such a function can be subject to common subexpression elimination and loop optimization just as an arithmetic operator would be. string.h: Mark many commently used string functions as "pure", to allow for additional compiler optimizations. Change-Id: I42961f90f822b6dbcbc3fd72cdbe774a7adc8785
|
8eda21baa54977e4d164a4174d06b6aa12115fb1 |
|
17-Mar-2011 |
David 'Digit' Turner <digit@android.com> |
libc: <sys/cdefs.h>: Fix the use of __STDC_VERSION__ from C++ See http://code.google.com/p/android/issues/detail?id=14627 for context. Change-Id: Idb10b675667d0d6e64dcb1d382be11e45aa6f4c4
|
23d24394e72715ddf580726655c8ba3fbcf11bfe |
|
06-Dec-2010 |
David 'Digit' Turner <digit@google.com> |
libc: Add <android/api-level.h> Add a new header that defines __ANDROID_API__ as a constant integer corresponding to the current native API level. This header is included by <sys/cdefs.h> Change-Id: Ib4774e247b395991266245815a24292afc919848 NOTE: This header is already provided by the NDK's platform headers. for levels 3 to 9.
|
50ace4fec5e8cb5afcbc656a4556fa528adfd760 |
|
17-Jun-2010 |
David 'Digit' Turner <digit@google.com> |
Remove compiler warnings when building Bionic. Also add missing declarations to misc. functions. Fix clearerr() implementation (previous was broken). Handle feature test macros like _POSIX_C_SOURCE properly. Change-Id: Icdc973a6b9d550a166fc2545f727ea837fe800c4
|
3527fd6f0df794207215790321824b7844cc712d |
|
15-Jun-2010 |
David 'Digit' Turner <digit@google.com> |
wchar.h: improve wchar_t support in Bionic Change-Id: Iffd41046fd0933c66542abf7627a1569522dfcb2
|
1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
1767f908af327fa388b1c66883760ad851267013 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
|