aboutsummaryrefslogtreecommitdiff
path: root/libstdc++
AgeCommit message (Collapse)Author
2021-02-16Fix/update notices.Elliott Hughes
Auto-generate NOTICE files for all the directories, and for each one individually rather than mixing libc and libm together. Test: N/A Change-Id: I7e251194a8805c4ca78fcc5675c3321bcd5abf0a
2016-10-20One NOTICE file to rule them all.Dan Albert
Generate a single NOTICE file rather than one per library. All the headers come from libc these days anyway. Test: tools/update_notice.sh Bug: None Change-Id: I127da185fdabc2815042e19aea74c507ec108f46
2016-08-08Update NOTICE files.Elliott Hughes
Change-Id: I591dc91b54804aebc05ba6f9974ef9add660ecfe
2016-05-27Remove libstdc++ include files.Elliott Hughes
We still need <new> for bionic, and to build libstdc++. Change-Id: Ic7b26340576a5355007a06db9c1bec395be49ae1
2014-09-14Fix filename in comment in cmathm4tx
It looks like the file comment was copy-pasted from ctime. Fixed filename in comment to "math.h". Change-Id: I27b0c2a7827076a91fc7b63913fad6eee4d6a79e Signed-off-by: m4tx <m4tx@m4tx.pl>
2014-08-25Add standard throw() spec to delete operators.Chih-Hung Hsieh
Without these specs, clang will reports mismatch between standard definitions and these declarations/definitions. These specs are ignored when compiled with -fno-exceptions. BUG: 17136236 Change-Id: I386c712a61dc4fc74dfde45f9ec2d3d037f2e9f1
2014-08-18Hide C++ stuff in libc. Put it back in libstdc++.Dan Albert
Bug: 17062445 Change-Id: I027b186719654c2865b08c3fa83f90fa00c1e838
2014-07-29Remove declarations for things that don't exist.Elliott Hughes
The <grp.h> ones prevent gdb from building out of the box. Change-Id: I0efbffad2215cfcd75b4d442dfc972444b51d97c
2014-07-22Fix a couple of bugs in generate-NOTICE and regenerate the NOTICE files.Elliott Hughes
Change-Id: Id6fcb74292e661504d0758bfce24abdc18cb8d32
2014-07-07Regenerate the bionic NOTICE files.Elliott Hughes
Also fix a few formatting issues in copyright headers that were confusing the script (though obviously it would be better if the script were smarter). Change-Id: I7f561bef4f84fdcbd84f375ee226bd65db0e507b
2014-06-17Hide declaration of gets(3) for C11 and later.Dan Albert
gets(3) was removed from C11. This reverts commit 1291680c2a0c23b2163198d27e00261ca206298b. Bug: 14500800 Change-Id: I5e5146bdbb80f2be818a17f287b112bab37d1f6d
2014-06-17Revert "Hide declaration of gets(3) for C11 and later."Dan Albert
Breaks stlport. checkbuild lied to me? This reverts commit c0ce5908277a9bf18628946629dba4277e9a2281. Change-Id: I72fb21aba7eaea96a7c3208236fd03411527fa5e
2014-06-17Hide declaration of gets(3) for C11 and later.Dan Albert
gets(3) was removed from C11. Change-Id: I4040a8a6c6d5d2a86878e8a80ca67964fbbb82a8
2014-05-14Move libstdc++ into libc.Elliott Hughes
The Android build system always links against libstdc++.so anyway. Having operator new and operator delete in a separate library means we can't use constructors and destructors on heap-allocated objects inside the C library, which is quite an unfortunate limitation. This will be cheaper too; on LP64 we can stop linking against the [now empty] libstdc++.so giving the dynamic linker one less library to worry about for every process. There's precedent too --- we already have no libpthread or librt. For now I'm leaving the include files where they are, and I'm generating a dummy libstdc++.so and libstdc++.a. We can come back and clean that up later if all goes well. Bug: 13367666 Change-Id: I6f3e27ea7c30d03d6394965d0400c9dc87fa83db
2014-02-18Clean up warnings in libstdc++.Elliott Hughes
Change-Id: Ie71a2fdf227e7a5fc9a446bb1be110da9b3a4280
2013-10-09Fix x86_64 build, clean up intermediate libraries.Elliott Hughes
The x86_64 build was failing because clone.S had a call to __thread_entry which was being added to a different intermediate .a on the way to making libc.so, and the linker couldn't guarantee statically that such a relocation would be possible. ld: error: out/target/product/generic_x86_64/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a(clone.o): requires dynamic R_X86_64_PC32 reloc against '__thread_entry' which may overflow at runtime; recompile with -fPIC This patch addresses that by ensuring that the caller and callee end up in the same intermediate .a. While I'm here, I've tried to clean up some of the mess that led to this situation too. In particular, this removes libc/private/ from the default include path (except for the DNS code), and splits out the DNS code into its own library (since it's a weird special case of upstream NetBSD code that's diverged so heavily it's unlikely ever to get back in sync). There's more cleanup of the DNS situation possible, but this is definitely a step in the right direction, and it's more than enough to get x86_64 building cleanly. Change-Id: I00425a7245b7a2573df16cc38798187d0729e7c4
2013-03-15Clean up internal libc logging.Elliott Hughes
We only need one logging API, and I prefer the one that does no allocation and is thus safe to use in any context. Also use O_CLOEXEC when opening the /dev/log files. Move everything logging-related into one header file. Change-Id: Ic1e3ea8e9b910dc29df351bff6c0aa4db26fbb58
2012-08-15Regenerate all NOTICE files with the latest version of the script.Elliott Hughes
This sorts every entry, so we should have more stability and fewer merge conflicts in future. Change-Id: Ifc5347dc53352da22c82d41ca59b483966fcfc6b
2012-08-13Add dependencies on all the makefiles.Elliott Hughes
This should help prevent broken builds next time I'm messing with assembler/compiler/linker flags... Change-Id: I30f15a3ce3c3f3c60cad7bc59aaba9f42d792224
2012-08-09Auto-generate a complete NOTICE file.Elliott Hughes
Remove the hand-collated ones, and switch to a script that pulls the copyright headers out of every file and collects the unique ones. Change-Id: Ied3b98b3f56241df97166c410ff81de4e0157c9d
2012-07-27Report errors to the log, not just stderr.Elliott Hughes
In particular this affects assert(3) and __cxa_pure_virtual, both of which have managed to confuse people this week by apparently aborting without reason. (Because stderr goes nowhere, normally.) Bug: 6852995 Bug: 6840813 Change-Id: I7f5d17d5ddda439e217b7932096702dc013b9142
2012-04-16resolved conflicts for merge of 35d592cc to masterElliott Hughes
Change-Id: I8184302daf61814d26c837f9920b4e68d96d7f65
2012-04-16libstdc++: Fix x86 thread-safe one-time-construction implementation.Fengwei Yin
The root of the problem is that the existing implementation is based on the ARM C++ ABI, which mandates a different guard variable layout than the Itanium/x86 C++ one. This patch modifies the implementation in a way that satisfies both ABIs (and doesn't require changing the toolchains). Change-Id: I885e9adc7f088b9c0a78355bd752f1e6aeec9f07 Signed-off-by: Fengwei Yin <fengwei.yin@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2011-11-16bionic: Do not use <sys/atomics.h> for platform code.David 'Digit' Turner
We're going to modify the __atomic_xxx implementation to provide full memory barriers, to avoid problems for NDK machine code that link to these functions. First step is to remove their usage from our platform code. We now use inlined versions of the same functions for a slight performance boost. + remove obsolete atomics_x86.c (was never compiled) NOTE: This improvement was benchmarked on various devices. Comparing a pthread mutex lock + atomic increment + unlock we get: - ARMv7 emulator, running on a 2.4 GHz Xeon: before: 396 ns after: 288 ns - x86 emulator in KVM mode on same machine: before: 27 ns after: 27 ns - Google Nexus S, in ARMv7 mode (single-core): before: 82 ns after: 76 ns - Motorola Xoom, in ARMv7 mode (multi-core): before: 121 ns after: 120 ns The code has also been rebuilt in ARMv5TE mode for correctness. Change-Id: Ic1dc72b173d59b2e7af901dd70d6a72fb2f64b17
2011-06-14libstdc++: make operator new call abort on failure.David 'Digit' Turner
This change ensures that operator new will call abort() in case of memory allocation failure. Note that due to our usage of memory overcommit, this can only happen under very rare circumstances (i.e. trying to allocate memory larger than the larger free range of virtual address space, or when memory is corrutped in various ways). Change-Id: I128b8bf626216e899c22a00f24492cd148a1fc94
2010-10-11Fix the build. Oops.David 'Digit' Turner
(We remove the declaration for on_exit() from the C library headers, so do the same for the C++ <cstdlib>) Change-Id: I31a21d5643068cd160724908dd8156863a44d95a
2010-07-07Add missing SMP barriers to libstdc++David 'Digit' Turner
Change-Id: I20a8dcd2e3316ac60237e800c682cacc8e59e187
2010-06-25libstdc++: use extern "C++" in all our C++ system headers.David 'Digit' Turner
This is needed to build an independent toolchain with g++ that doesn't think that all these headers are in C. Change-Id: Ie9a8ccfcab7780d6a4e5722777d61c2b1b312001
2010-01-30optimize delete/delete[] operators by removing unneeded branchAndré Goddard Rosa
Remove redundant not NULL check already done in free(). Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
2009-11-12eclair snapshotJean-Baptiste Queru
2009-07-10Add new C++ headers <cerrno> and <cfloat>David 'Digit' Turner
Also add std::malloc/realloc/calloc/free to <cstdlib> Rename <cwchar_is_not_supported> to <cwchar>
2009-05-18Add <cmath> standard C++ header.David 'Digit' Turner
This is needed for upcoming STLport experimentation.
2009-04-10AI 145714: Added cstring wrapper around string.h.Niko Catania
In new, include cstddef which declares std::size_t. BUG=1601432 Automated import of CL 145714
2009-04-08AI 145059: (Almost) final set of wrapper around the C headers for stdc++ and ↵Niko Catania
their tests. The only one left is cstring. * bionic/libstdc++/include/cstdlib: * bionic/libstdc++/include/cstdio: * bionic/libstdc++/include/cstdint: * bionic/libstdc++/include/csignal: * bionic/libstdc++/include/csetjmp: Added header file. Checks the bionic headers file were picked up instead of the host ones. Added test for new header files * system/extras/tests/bionic/libstdc++/Android.mk: Added tests for the new header files. EXTRA_CFLAGS: include the bionic header files. BUG=1601432 Automated import of CL 145059
2009-04-02AI 144236: Added new C to stdc++ header files: cassert, cctype, climits, ctime.Niko Catania
QA Impact:None BUG=1601432 Automated import of CL 144236
2009-03-30AI 143504: Completed cstddef to be non empty and similar to the gnu stl ↵Niko Catania
implementation. Even if we don't want to have a bloated stl implementation, having empty files around is probably not very good either. Added a test to make sure the header file compiles on host and kila-eng. QA Impact: In system/extras/test/bionic/libstdc++ build the tests using: mm BIONIC_TESTS=1 to build the host and target tests. BUG=1601432 Automated import of CL 143504
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2008-12-17Code drop from //branches/cupcake/...@124589The Android Open Source Project
2008-10-21Initial Contributionandroid-1.0release-1.0The Android Open Source Project