Commit Graph

  • 9c0df1416f Rename uses of _ and __ because these are getting stepped on by macros from other system code. Howard Hinnant 2012-10-30 19:06:59 +0000
  • eac2a01863 Add an entry in CREDITS.TXT Argyrios Kyrtzidis 2012-10-15 17:34:53 +0000
  • 1c0be3864a Use traits_type::to_int_type in basic_streambuf<_CharT, _Traits>::xsputn when calling overflow to correctly handle negative signed character types. This fixes http://llvm.org/bugs/show_bug.cgi?id=14074. Howard Hinnant 2012-10-13 19:31:51 +0000
  • 999fc97ef2 Dimitry Andric: FreeBSD only: Add the C11 aligned_alloc to <cstdlib> and adjust the inclusion of quick_exit. Howard Hinnant 2012-10-13 18:03:53 +0000
  • 1dc6f7ab97 Don't neglect to "return *this". Argyrios Kyrtzidis 2012-10-13 02:03:45 +0000
  • 75536baae7 Holger Arnold: Correct the use and testing of __GNUC__ and __GNUC_MINOR__ in <__config>. Howard Hinnant 2012-10-03 20:48:05 +0000
  • 95c0e9f9e1 Make vector::iterator and string::iterator more resilient against overly generic relational operators. Howard Hinnant 2012-10-02 19:45:42 +0000
  • 155ff6e95a Due to a mistake on my own part, I need to burn some version numbers. This does not impact any of the implementation of libc++, and does not impact the ABI in any way. Howard Hinnant 2012-09-28 17:42:25 +0000
  • 8d36c432f2 Bump _LIBCPP_VERSION to 1002 Howard Hinnant 2012-09-26 15:38:09 +0000
  • c25d158c62 Apply the emulated nullptr_t with constexpr. This is an unusual configuration that would take advantage of this. But it has popped up in the wild and does no harm to support it. Howard Hinnant 2012-09-24 23:36:40 +0000
  • c004e2e7d7 Updating email address Marshall Clow 2012-09-24 14:27:10 +0000
  • 3c6fefdf44 Fix installheaders target to do what it did prior to r161760. rdar://12348765 Bob Wilson 2012-09-21 20:49:54 +0000
  • 2d3f4ee99f Add overflow check to tanh(complex) and reduce to finite answer. Fixes http://llvm.org/bugs/show_bug.cgi?id=13874 Howard Hinnant 2012-09-19 23:51:47 +0000
  • a585de645c Overloaded __pad_and_output on ostreambuf_iterator and in this overload call sputn instead of dereferencing the iterator which calls sputc. This is intended to be purely a performance optimization, especially for clients who may have overloaded the virtual function xsputn. Howard Hinnant 2012-09-19 19:14:15 +0000
  • 47f24f53a4 added -std=c++11 option support Alexander Esilevich 2012-09-18 10:48:32 +0700
  • 7eb9f1e3a3 Align <atomic> with clang r163964 which disallows const _Atomic types. Howard Hinnant 2012-09-16 20:33:09 +0000
  • 6cb977bf0c Update CREDITS.TXT Howard Hinnant 2012-09-14 23:28:54 +0000
  • 33be35effe Dimitry Andric: many visibility fixes. Howard: Much appreciated. Can you send me a patch to CREDITS.TXT? Howard Hinnant 2012-09-14 00:39:16 +0000
  • 5c90cbad38 Dimitry Andric: FreeBSD porting tweaks for PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER Howard Hinnant 2012-09-11 16:10:20 +0000
  • 460b4cadde Some minor mingw64 porting tweaks from Glen. Howard Hinnant 2012-09-03 18:13:11 +0000
  • cf115d2cc6 Change sleep_for, sleep_until, and the condition_variable timed wait functions to protect against duration and time_point overflow. Since we're about to wait anyway, we can afford to spend a few more cycles on this checking. I purposefully did not treat the timed try_locks with overflow checking. This fixes http://llvm.org/bugs/show_bug.cgi?id=13721 . I'm unsure if the standard needs clarification in this area, or if this is simply QOI. The <chrono> facilities were never intended to overflow check, but just to not overflow if durations stayed within +/- 292 years. Howard Hinnant 2012-08-30 19:14:33 +0000
  • c417a802ed Hyeon-bin Jeong: libc++ fails to create any classes inherit from basic_ios if they provided char type other than char or wchar_t. It throw exception during construction, so there is no chance to imbue own ctype. Howard Hinnant 2012-08-26 18:05:35 +0000
  • 70e441a9b0 Update CREDITS.TXT Howard Hinnant 2012-08-26 17:46:29 +0000
  • a5160283a4 Michel Morin: My previous fix for C++03 was incomplete. It does not consider user-defined conversions that convert an rvalue into an lvalue and works incorrectly for types with such a conversion operator. For example, Howard Hinnant 2012-08-25 15:06:50 +0000
  • 3882d397c4 Wrap throw in _LIBCPP_NO_EXCEPTIONS in debug.cpp. Calls abort if can't throw an exception. Fixes http://llvm.org/bugs/show_bug.cgi?id=13082. Howard Hinnant 2012-08-24 22:15:12 +0000
  • 37bdf0e6bd Have basic_istream seekg, putback and unget first clear eofbit. Fixes http://llvm.org/bugs/show_bug.cgi?id=13089. Howard Hinnant 2012-08-24 22:03:03 +0000
  • d57de091c3 Add Hyeon-bin Jeong to CREDITS.TXT Howard Hinnant 2012-08-24 21:45:19 +0000
  • d305d3c1a2 Hyeon-Bin Jeong: 1. sync() should reset it’s external buffer pointers. Remaining characters should be discarded once sync() called. If don’t, garbage characters can be inserted to the front of external buffer in underflow(). Because underflow() copies remaining characters in external buffer to it’s front. This results wrong characters insertion when seekpos() or seekoff() is called. Howard Hinnant 2012-08-24 21:20:56 +0000
  • ec423cb8d4 Fix basic_filebuf's internal buffer is shrinking when using with some codecvt. http://llvm.org/bugs/show_bug.cgi?id=13602 Howard Hinnant 2012-08-24 20:37:00 +0000
  • e7d59f2601 Fixed order of calling use_facet vs setbuf in basic_filebuf default constructor. Howard Hinnant 2012-08-24 18:06:47 +0000
  • 8540d4c9d2 basic_filebuf needs to delay obtaining a codecvt facet from the global locale to give the client a chance to imbue the proper locale. Fixes http://llvm.org/bugs/show_bug.cgi?id=13663. Howard Hinnant 2012-08-24 16:52:47 +0000
  • 08a0b48c09 Fix a typo in the docs Marshall Clow 2012-08-22 00:57:11 +0000
  • ffab05833f In C++03 mode add an explicit conversion from int to the emulated class enum. Fixes a problem reported by C. Bergström. Howard Hinnant 2012-08-19 17:14:47 +0000
  • 96c60b482e Patch contributed by Dev Dude for mingw64 port. Howard Hinnant 2012-08-19 15:13:16 +0000
  • a0852ffbe8 Apply patches supplied by Michel Morin in http://llvm.org/bugs/show_bug.cgi?id=13601 to correct bugs in is_convertible for the case that the intrinsic __is_convertible_to is not available. Howard Hinnant 2012-08-17 17:54:11 +0000
  • 4ae952ab9a Consistently label __bit_array as a struct, not a class. Howard Hinnant 2012-08-17 17:10:18 +0000
  • 364e94575b Remove obsolete do-installhdrs target (again). Howard Hinnant 2012-08-13 16:32:15 +0000
  • 2a03b71f09 Remove obsolete do-installhdrs target. Howard Hinnant 2012-08-13 16:17:12 +0000
  • e87514aa94 Patch constributed by Michel Moren in http://llvm.org/bugs/show_bug.cgi?id=13592 . Fixes is_convertible<From, To> when To is an abstract type. Howard Hinnant 2012-08-13 12:29:17 +0000
  • 4490c4aaed Change size of reference count field in __libcpp_nmstr from 32 bits to 64 bits for 64 bit targets. This is controls the data layout of all exceptions defined in <stdexcept>. This aligns the ABI with that of gcc-4.2. Howard Hinnant 2012-08-08 16:17:31 +0000
  • 584db4287b std::equal operating on non-const __bit_iterators was not working. This fixes it. Howard Hinnant 2012-08-05 21:43:11 +0000
  • e103a3d69b Andrew Morrow: The current CMake setup for libc++ incorrectly uses the variable LLVM_ENABLE_ASSERTIONS instead of LIBCXX_ENABLE_ASSERTIONS when figuring out what _DEBUG/NDEBUG defines to set. It also tries to test the non-existent variable 'uppercase_CMAKE_BUILD_TYPE', which the top level LLVM CMakeLists.txt sets up, but which the top level libc++ CMakeLists.txt currently does not. Changing the variable name tested and creating the uppercase release name variable allows libc++ to honor the LIBCXX_ENABLE_ASSERTIONS option correctly. Howard Hinnant 2012-08-05 17:37:39 +0000
  • 6886dd19c4 Loosen up the timing requirements on 4 more tests. Howard Hinnant 2012-08-04 00:47:42 +0000
  • 4b2f4203a2 Performance tweaking rotate. Howard Hinnant 2012-08-03 18:01:20 +0000
  • cd99236231 Andrew Morrow: The attached patch updates the initialization of the 'struct tm' in __time_get_storage<char> to match the initialization behavior in __time_get_storage<wchar>. Without the initialization, valgrind reports errors in the subsequent calls to strftime_l. Howard Hinnant 2012-08-02 18:44:17 +0000
  • 069bdd52c1 Andrew Morrow: There are two tests under test/utilities/memory that heap allocate two integers which remain unused and are subsequently leaked, so the test fail when run under valgrind. Unless I'm overlooking a subtle reason why they are needed I think they can be removed, allowing these tests to pass under valgrind. The attached patch removes the variables. If there is a reason for them to exist, I can change this to just delete them at the end of the test. Howard Hinnant 2012-08-02 18:39:48 +0000
  • 63b2f4f2dc Andrew Morrow: The attached patch updates the lit.config for libc++ unit tests so that the valgrind configuration passed to lit.py is used to run .pass tests. Howard Hinnant 2012-08-02 18:36:47 +0000
  • ef793f2513 Andrew Morrow: Among the various libc++ tests that currently don't pass on Linux are localization/locale.categories/category.collate/category.ctype/locale.ctype.byname/is_1.pass.cpp and scan_is.pass.cpp. The tests fail when the character class being tested is compound, like ctype_base::alnum or ctype_base::graph, because the existing series of conditionals in do_is an do_scan_is will abort too early. For instance, if the character class being tested is alnum, and the character is numeric, do_is will return false because iswalpha_l will return false, 'result' becomes false, and the 'true' result from the later call to iswdigit_l ends up being ignored . A similar problem exists in do_scan_is. Howard Hinnant 2012-08-02 18:35:07 +0000
  • 403f91ad2c Andrew Morrow: The attached patch is an attempt to implement std:🧵:hardware_concurrency for platforms that don't offer sysctl, but do provide a POSIX sysconf and _SC_NPROCESSORS_ONLN. Howard Hinnant 2012-08-02 18:17:49 +0000
  • 6d39f9f356 Andrew Morrow: This patch fixes test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.pass.cpp to accept '(nil)' as a valid representation for NULL so that the test passes on Linux. The same thing is already done in some other tests, like in /test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_pointer.pass.cpp. Howard Hinnant 2012-08-02 18:12:06 +0000
  • ee7a0bf265 Andrew Morrow: Attached is a writeup of the current state of the libc++ test suite on Linux. Howard Hinnant 2012-07-31 21:30:28 +0000
  • 65f059b842 Despite my pathological distrust of spin locks, the number just don't lie. I've put a small spin in __sp_mut::lock() on std::mutex::try_lock(), which is testing quite well. In my experience, putting in a yield for every failed iteration is also a major performance booster. This change makes one of the performance tests I was using (a highly contended one) run about 20 times faster. Howard Hinnant 2012-07-30 17:13:21 +0000
  • 7a7b6d8283 Updated status Howard Hinnant 2012-07-30 13:59:36 +0000
  • 30055c68d4 Updated the complete by-chapter graph Howard Hinnant 2012-07-30 02:29:34 +0000
  • 5fec82dc0d Implement [util.smartptr.shared.atomic]. This is the last unimplemented section in libc++. This requires a recompiled dylib. Failure to rebuild the dylib will result in a link-time error if and only if the functions from [util.smartptr.shared.atomic] are used. Howard Hinnant 2012-07-30 01:40:57 +0000
  • 116ce6a312 Update CREDITS.TXT Howard Hinnant 2012-07-26 20:22:37 +0000
  • afcac1ac46 Patch by Andrew C. Morrow: shims to work around macroized getc and putc on linux. On my eglibc 2.13 based Debian system 'getc' is a macro defined in /usr/include/stdio.h. This decision to make it a macro doesn't seem to be guarded by any feature test macro as far as I can see. Howard Hinnant 2012-07-26 20:01:13 +0000
  • 8b5bb3c5af Patch by Andrew C. Morrow: Conditionally include cxxabi.h in new.cpp and typeinfo.cpp. Both new.cpp and typeinfo.cpp have code that is conditionally compiled based on the LIBCXXRT and _LIBCPPABI_VERSION defines, but those files do not currently include <cxxabi.h> in the non __APPLE__ case. The attached patch updates those files so that for non __APPLE__ builds <cxxabi.h> is included if available or if LIBCXXRT is set. I'm modeling this on the recent updates to exception.cpp. Howard Hinnant 2012-07-26 17:42:39 +0000
  • ca8eb830dd <algorithm> no longer needs to include <cstdlib>, but can get away with just <cstddef>. This was brought to my attention by Salvatore Benedetto in his port to a bare-metal coretex-m3. This exposed two test bugs where an explicit #include <cstdlib> was needed. Howard Hinnant 2012-07-26 17:09:09 +0000
  • f3d62ea57f locale::id really needs to be constructed at compile time. Howard Hinnant 2012-07-26 16:14:37 +0000
  • 0405cc4ae0 libc++: switch from using _ATTRIBUTE(noreturn) (which conflicts with a platform-provided macro on some systems) to _LIBCPP_NORETURN. Richard Smith 2012-07-26 02:04:22 +0000
  • 8131a01a9c Apple LWG 2067: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3318.html#2067 . This is the only actionable change that has been made to the C++ draft since C++11. In general it has not been decided exactly how libc++ will track changes made to C++11. New features and design changes will probably be #ifdef'd, especially if they are not backwards compatible. Defects and 'dumb mistakes' are more likely to just be put in. Decisions on telling one from the other will be made on a case by case basis. Howard Hinnant 2012-07-21 19:34:12 +0000
  • 8bf01ddd30 noexcept applied to <future>. Howard Hinnant 2012-07-21 17:46:55 +0000
  • 6e1d851be8 noexcept applied to <thread>. Howard Hinnant 2012-07-21 16:50:47 +0000
  • c8f7413908 noexcept applied to <condition_variable>. Howard Hinnant 2012-07-21 16:32:53 +0000
  • 499c61f999 noexcept and constexpr applied to <mutex>. Howard Hinnant 2012-07-21 16:13:09 +0000
  • 46623a09ee noexcept and constexpr applied to <regex>. Howard Hinnant 2012-07-21 01:31:58 +0000
  • f57bd564fd noexcept and constexpr applied to <ios>. Howard Hinnant 2012-07-21 01:03:40 +0000
  • bd143086ac noexcept applied to <valarray>. Howard Hinnant 2012-07-21 00:51:28 +0000
  • 410f2def47 constexpr applied to <complex>. Howard Hinnant 2012-07-20 22:18:27 +0000
  • c83960a9e4 noexcept applied to <random>. Howard Hinnant 2012-07-20 21:44:27 +0000
  • fe4c9dd747 Relax the tolerances on some timing tests. Howard Hinnant 2012-07-20 19:48:05 +0000
  • d06a640ba7 noexcept applied to <iterator>. Howard Hinnant 2012-07-20 19:36:34 +0000
  • 08bce1754d constexpr applied to <array>. Howard Hinnant 2012-07-20 19:20:49 +0000
  • 03d7181b0e constexpr applied to <string>. Howard Hinnant 2012-07-20 19:09:12 +0000
  • e41f475a44 Further tweaks on relaxing complete type checking for function. Howard Hinnant 2012-07-20 18:56:07 +0000
  • 7d87f6be1b Jean-Daniel : clang now supports all required type_traits. Howard Hinnant 2012-07-19 15:59:52 +0000
  • af3473404e Jean-Daniel updates the libc++ index page to reflect not so recent changes in C++ standard status. Howard Hinnant 2012-07-19 15:57:51 +0000
  • c425307238 Relax the complete-type checks that are happening under __invokable<Fp, Args...> to only check Fp, and not Args... . This should be sufficient to give the desired high quality diagnostics under both bind and function. And this allows a test reported by Rich E on cfe-dev to pass. Tracked by <rdar://problem/11880602>. Howard Hinnant 2012-07-16 16:17:34 +0000
  • 473f838128 Applied constexpr to <chrono>. Howard Hinnant 2012-07-13 19:17:27 +0000
  • 1ca23672a0 Fixed a bug in wstring_convert concerning zero-length inputs. Thanks to Jonathan Coxhead for reporting this bug. Howard Hinnant 2012-07-12 18:07:41 +0000
  • 591e32d624 Teach libc++ to check for libc++abi and use its features if they're available. Richard Smith 2012-07-11 09:35:47 +0000
  • d586248597 Add test for self-referencing emplace test. Howard Hinnant 2012-07-09 02:47:43 +0000
  • a58402abb9 Change emplace for vector and deque to create the temporary (when necessary) before any changes to the container are made. Nikolay Ivchenkov deserves the credit for pushing this problem and the solution for it. Howard Hinnant 2012-07-08 23:23:04 +0000
  • 46e9493c68 Appy constexpr to <memory>. Picked up a few missing noexcepts as well. Howard Hinnant 2012-07-07 20:56:04 +0000
  • 384608e90d Apply constexpr to the mutex constructor. As a conforming extension, apply constexpr to the condition_variable constructor. These are important because it enables the compiler to construct these types at compile time, even though the object will be non-const. Since they are constructed at compile time, there is no chance of a data race before they are constructed. Howard Hinnant 2012-07-07 20:01:52 +0000
  • 90d8723476 Apply constexpr to <bitset>. Howard Hinnant 2012-07-07 17:04:52 +0000
  • 74f26f251b Apply noexcept to tuple. Howard Hinnant 2012-07-06 21:53:48 +0000
  • 4eebfc3394 As a conforming extension give tuple a noexcept default constructor conditionalized on its held types. Howard Hinnant 2012-07-06 20:50:27 +0000
  • 5394c1ed30 Give tuple a constexpr default constructor. Howard Hinnant 2012-07-06 20:39:45 +0000
  • a0b5befbd3 New Windows libc++ test results provided by Ruben Van Boxem. Howard Hinnant 2012-07-06 19:35:31 +0000
  • 9b12f23e30 Apply noexcept to those functions implemented in <cstdlib> as a conforming extension. Howard Hinnant 2012-07-06 19:16:56 +0000
  • cac0c46abb Apply noexcept to those functions implemented in <cmath> as a conforming extension. Howard Hinnant 2012-07-06 19:13:50 +0000
  • 71499ad176 Add noexcept test for offsetof macro per [support.types]/p4. Howard Hinnant 2012-07-06 18:39:01 +0000
  • 7a44515588 This commit establishes a new bucket_count policy in the unordered containers: The policy now allows a power-of-2 number of buckets to be requested (and that request honored) by the client. And if the number of buckets is set to a power of 2, then the constraint of the hash to the number of buckets uses & instead of %. If the client does not specify a number of buckets, then the policy remains unchanged: a prime number of buckets is selected. The growth policy is that the number of buckets is roughly doubled when needed. While growing, either the prime, or the power-of-2 strategy will be preserved. There is a small run time cost for putting in this switch. For very cheap hash functions, e.g. identity for int, the cost can be as high as 18%. However with more typical use cases, e.g. strings, the cost is in the noise level. I've measured cases with very cheap hash functions (int) that using a power-of-2 number of buckets can make look up about twice as fast. However I've also noted that a power-of-2 number of buckets is more susceptible to accidental catastrophic collisions. Though I've also noted that accidental catastrophic collisions are also possible when using a prime number of buckets (but seems far less likely). In short, this patch adds an extra tuning knob for those clients trying to get the last bit of performance squeezed out of their hash containers. Casual users of the hash containers will not notice the introduction of this tuning knob. Those clients who swear by power-of-2 hash containers can now opt-in to that strategy. Clients who prefer a prime number of buckets can continue as they have. Howard Hinnant 2012-07-06 17:31:14 +0000
  • 820e00755a link to Marshall's notes. Howard Hinnant 2012-07-06 00:39:38 +0000
  • 518d150040 mark operator new(std::nothrow) as noalias (aka __attribute__((malloc)) Nuno Lopes 2012-06-28 16:47:34 +0000
  • 2d62229b96 Fixed a bug regarding result_of reported by Sven Behne. The fix is C++11 only mainly because result_of is a variadic beast and working with variadics is just such a problem in C++03 mode. This should bring result_of up to full conformance with the C++11 spec. Howard Hinnant 2012-06-26 17:37:15 +0000
  • 67c8082a18 fix help with bash Nuno Lopes 2012-06-25 23:51:05 +0000
  • fe59276f04 Revert pair constructors back to using is_convertible instead of is_constructible. This should pull things into alignment with the final draft. Fixes http://llvm.org/bugs/show_bug.cgi?id=13063#add_comment. Howard Hinnant 2012-06-09 20:01:23 +0000