summaryrefslogtreecommitdiffstats
path: root/libcxx
Commit message (Collapse)AuthorAgeFilesLines
* Constrain bind operator()() to not exist if the call is not valid. Fixes ↵Howard Hinnant2013-02-211-6/+42
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=15295. llvm-svn: 175774
* Fix a bug in mutex_try_to_lock. This was previously trying to unlock a ↵David Chisnall2013-02-191-1/+0
| | | | | | | | | | mutex that it didn't own, causing an assertion failure in mutex.cpp. The issue was that the unique_lock went out of scope, releasing the lock on m, then m.unlock() was called on an already-unlocked mutex. This change removes the spurious m.unlock() call. If this test was previously passing for anyone with assertions enabled, then they should investigate bugs in their pthread implementation, as pthread_unlock() should not return 0 if the mutex is currently unlocked. llvm-svn: 175506
* Bruce Mitchener: Minor typo fixes.Howard Hinnant2013-02-153-4/+4
| | | | llvm-svn: 175274
* [tests] Add support for a link_flags lit parameter.Daniel Dunbar2013-02-121-15/+31
| | | | | | | - This is useful for testing with custom ABI libraries. - Patch by Michael van der Westhuizen. llvm-svn: 174997
* [tests] Another batch of timeout increases.Daniel Dunbar2013-02-118-12/+12
| | | | llvm-svn: 174902
* Michael van der Westhuizen: Update instructions for building on Linux.Howard Hinnant2013-02-081-0/+75
| | | | llvm-svn: 174733
* Add Michael van der Westhuizen to CREDITS.TXTHoward Hinnant2013-02-081-0/+3
| | | | llvm-svn: 174732
* Michael van der Westhuizen: update to CMake.Howard Hinnant2013-02-081-110/+59
| | | | llvm-svn: 174731
* [tests] Another batch of timeout increases.Daniel Dunbar2013-02-085-5/+5
| | | | llvm-svn: 174726
* [tests] Add back stdc macros I accidentally refactored out.Daniel Dunbar2013-02-081-0/+1
| | | | | | | | | | | | | | | - Patch by Michael van der Westhuizen: -- r174404 accidentally removed stdc format, limit and constant macros from the Linux test runner logic. This small patch re-adds the macros. Making this change fixes the following tests on Linux: - depr/depr.c.headers/inttypes_h.pass.cpp - depr/depr.c.headers/stdint_h.pass.cpp - input.output/file.streams/c.files/cinttypes.pass.cpp - language.support/cstdint/cstdint.syn/cstdint.pass.cpp -- llvm-svn: 174722
* [tests] Increase a bunch of wait limits.Daniel Dunbar2013-02-0811-12/+12
| | | | | | | | | | - Basically I just ran the thread tests many many times on a busy machine and bumped the timeouts whenever I hit a test failure. - This is obviously subpar, but is the best I can do without the tests being rewritten to not depend on arbitrary timeouts. llvm-svn: 174721
* Change the 'result_type' from unsigned to 'uint_fast32_t'. This eliminates ↵Marshall Clow2013-02-071-1/+1
| | | | | | truncation warnings on Linux llvm-svn: 174669
* Belt and suspenders when calling sysconfMarshall Clow2013-02-071-1/+3
| | | | llvm-svn: 174642
* Another libc++ warning suppression on Linux; no functionality changeMarshall Clow2013-02-071-1/+1
| | | | llvm-svn: 174637
* More libc++ warning suppression on Linux; no functionality changeMarshall Clow2013-02-071-2/+6
| | | | llvm-svn: 174636
* Revert accidental check-in. These changes are probably good, but premature ↵Howard Hinnant2013-02-074-35/+8
| | | | | | at this point. llvm-svn: 174625
* Michael van der Westhuizen: The attached patch add support for building ↵Howard Hinnant2013-02-075-8/+118
| | | | | | | | | | | against libc++abi and libcxxrt to CMake builds of libc++. Usage (with the appropriate CC and CXX environment variables) is: $ cmake -DLIBCXX_CXX_ABI=libcxxabi '-DLIBCXX_LIBCXXABI_INCLUDE_PATHS=/home/michael/libcxxabi/include' ../libcxx and: $ cmake -DLIBCXX_CXX_ABI=libcxxrt '-DLIBCXX_LIBCXXRT_INCLUDE_PATHS=/home/michael/libcxxrt/src' ../libcxx llvm-svn: 174623
* Clean up some warnings for Linux build; No functionality changeMarshall Clow2013-02-071-43/+50
| | | | llvm-svn: 174611
* [build/Darwin] Use the correct libc++abi reexport list.Daniel Dunbar2013-02-071-1/+9
| | | | | | | - This updates the build script to match the change originally in r149634, so that we re-export symbols from libc++abi appropriately. llvm-svn: 174563
* [build] Detabify.Daniel Dunbar2013-02-071-44/+44
| | | | llvm-svn: 174562
* Marcin Zalewski: Change the name of a template parameter in __copy_backward ↵Howard Hinnant2013-02-061-2/+2
| | | | | | from _InputIterator to _BidirectionalIterator to better document the intent of the algorithm. llvm-svn: 174544
* Give a lot more timing latitude to some of the timing tests. Busy buildbots ↵Howard Hinnant2013-02-065-8/+8
| | | | | | are hitting the timing limits too often. llvm-svn: 174539
* [tests] Infer the cxx_under_test (as clang++).Daniel Dunbar2013-02-061-4/+11
| | | | | | | | | - This is a reasonable default, and makes testing just work with no required parameters. - Add notes on all of the inferred or default values. llvm-svn: 174538
* [tests] Change test default to run against locally built library.Daniel Dunbar2013-02-061-3/+3
| | | | llvm-svn: 174528
* [tests] Enable use_system_lib support on Linux.Daniel Dunbar2013-02-061-1/+2
| | | | | | - Patch by Michael van der Westhuizen. llvm-svn: 174527
* [tests] One last batch of XFAILs, for tests using new symbols added to libc++.Daniel Dunbar2013-02-0616-0/+80
| | | | | | | - As of this commit, the test suite should now fully pass on both darwin11 and darwin12 when testing against either a locally built libc++ or the system libc++. llvm-svn: 174478
* [build] Create the link for the final library install name in the lib dir.Daniel Dunbar2013-02-061-0/+15
| | | | | | | - Otherwise, we never were actually linking against the right library when building the test applications. llvm-svn: 174470
* [tests] Accept XFAIL arguments that match any part of a feature.Daniel Dunbar2013-02-061-3/+4
| | | | llvm-svn: 174469
* [tests] XFAIL some locale tests that don't seem to work on any Darwin.Daniel Dunbar2013-02-058-0/+16
| | | | llvm-svn: 174459
* [tests] If no explicit target triple is given, try to infer it.Daniel Dunbar2013-02-051-2/+7
| | | | llvm-svn: 174454
* [tests] Mark another stream input expected failure (with system libc++).Daniel Dunbar2013-02-051-0/+2
| | | | llvm-svn: 174453
* [tests] Mark another stream input expected failure (with system libc++).Daniel Dunbar2013-02-051-0/+2
| | | | llvm-svn: 174452
* [tests] Mark some string.conversions expected failures (with system libc++).Daniel Dunbar2013-02-052-0/+6
| | | | llvm-svn: 174451
* [tests] XFAIL a few things that require libc (?) support missing on Darwin.Daniel Dunbar2013-02-054-0/+8
| | | | llvm-svn: 174450
* [tests] Mark some istream.unformatted expected failures (with system libc++).Daniel Dunbar2013-02-054-0/+9
| | | | llvm-svn: 174444
* [tests] Add an available feature that combines the triple and use_system_lib.Daniel Dunbar2013-02-051-0/+8
| | | | | | | - This is so that we can easily write XFAIL markers for tests that are known to fail with versions of libc++ as were shipped with a particular triple. llvm-svn: 174443
* [tests] Add support for REQUIRES and XFAIL lines in libc++ tests.Daniel Dunbar2013-02-051-1/+68
| | | | | | | | | | - We parse up to the first non-empty non-comment (C++ style) line, otherwise the format and semantics match what is used for LLVM/Clang tests. - For now, the only interesting thing to test against is a user supplied target_triple test parameter. llvm-svn: 174440
* [tests] Add a 'use_system_lib' parameter.Daniel Dunbar2013-02-051-11/+37
| | | | | | | | | | | - This controls whether to execute against the locally built library or not. The default is currently True which maps to what was already being done by default. - I'd appreciate it if someone can implement the proper handling of this flag on linux, I no longer remember the details of its .so handling. llvm-svn: 174404
* Saleem Abdulrasool: If errno is defined as volatile int, the qualifier ↵Howard Hinnant2013-01-222-20/+20
| | | | | | | | | | | differences can cause template typename deductions on swap<> (used in string.cpp). Use decltype(errno) to replicate the type and qualifier information for holding the errno value. Because errno is expected to be assignable, there is no need to use typename std::remove_const<decltype(errno)>::type to hold the value. llvm-svn: 173172
* Saleem Abdulrasool: __terminate_handler and __unexpected_handler are defined ↵Howard Hinnant2013-01-221-1/+1
| | | | | | | | | but not used when building against libsupc++ as the functions for which they are used are provided by libsupc++. Simply preprocess them away when building against libsupc++. llvm-svn: 173165
* Saleem Abdulrasool: Ensure that __GLIBCXX__ is defined when building with ↵Howard Hinnant2013-01-221-0/+1
| | | | | | libsupc++. llvm-svn: 173164
* Implement the ATOMIC_*_LOCK_FREE macros.Howard Hinnant2013-01-211-8/+12
| | | | llvm-svn: 173084
* Donated anonymously: This enables GCC 4.8.0 to build libc++.Howard Hinnant2013-01-212-2/+2
| | | | llvm-svn: 173060
* Make a few tests optimization-proof. These tests were failing under -O3 ↵Howard Hinnant2013-01-164-4/+4
| | | | | | because the optimizer was eliminating the call to new. llvm-svn: 172631
* Optimize basic_ostream::write by having it call sputn instead of sputc.Howard Hinnant2013-01-151-11/+2
| | | | llvm-svn: 172542
* Make <cmath> classification macros work with integral types.Howard Hinnant2013-01-142-42/+60
| | | | llvm-svn: 172461
* Fix a race in the construction of future. This fixes ↵Howard Hinnant2013-01-142-2/+6
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=14934. llvm-svn: 172456
* Fix string conversions functions to throw out_of_range properly. Fixes ↵Howard Hinnant2013-01-143-62/+80
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=14919. llvm-svn: 172447
* Michael van der Westhuizen: Improve support for testing on Linux. Fixes ↵Howard Hinnant2013-01-142-6/+30
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=14892. llvm-svn: 172436
* Michael van der Westhuizen: Patches for Linux. Fixes ↵Howard Hinnant2013-01-143-2/+8
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=14648. llvm-svn: 172435
OpenPOWER on IntegriCloud