summaryrefslogtreecommitdiffstats
path: root/libcxx
Commit message (Collapse)AuthorAgeFilesLines
...
* Marshall Clow found this memory problem in strstream using ↵Howard Hinnant2013-03-191-0/+2
| | | | | | -fsanitize=address on the test suite. llvm-svn: 177452
* This is an optimization which produces improved launching time. There ↵Howard Hinnant2013-03-192-20/+22
| | | | | | should be no functionality change. Clients should see no ABI differences. llvm-svn: 177443
* Fix bug in test; found by AddressSanitizerMarshall Clow2013-03-181-1/+1
| | | | llvm-svn: 177355
* Removed raw references to __sun__, __FreeBSD__, __GLIBC__ and __linux__; now ↵Marshall Clow2013-03-184-13/+13
| | | | | | just check to see if they are defined. llvm-svn: 177310
* Removed raw references to _MSC_VER; now just check to see if it is defined.Marshall Clow2013-03-181-6/+6
| | | | llvm-svn: 177304
* Removed raw references to __APPLE__; now just check to see if it is defined.Marshall Clow2013-03-1810-16/+16
| | | | llvm-svn: 177297
* Removed raw references to _WIN32; now just check to see if it is defined.Marshall Clow2013-03-188-19/+19
| | | | llvm-svn: 177291
* This should be nothing but a load-time optimization. I'm trying to reduce ↵Howard Hinnant2013-03-161-1/+9
| | | | | | load time initializers and this is a big one. No visible functionality change intended. llvm-svn: 177212
* Updated link to Marshall's instructionsMarshall Clow2013-03-141-1/+1
| | | | llvm-svn: 177099
* Some forward-looking and optimistic documentation.Howard Hinnant2013-03-142-0/+157
| | | | llvm-svn: 177093
* This SO question: ↵Howard Hinnant2013-03-111-1/+1
| | | | | | http://stackoverflow.com/questions/15344402/how-can-i-read-a-0xff-in-a-file-with-libc-istream-iterator/15347225#15347225 highlighted the lack of a cast in the implementation of std::cin. Added. I unfortunately don't have a test case to add to the suite since this bug only shows itself when using std::cin. The current testsuite setup does not have a way a good way to test std::cin. llvm-svn: 176822
* Parsing floating point numbers with very long precision was broken, and this ↵Howard Hinnant2013-03-082-7/+25
| | | | | | patch fixes it. This fixes http://llvm.org/bugs/show_bug.cgi?id=15445. llvm-svn: 176711
* Albert Wong: definition for regex_traits<_CharT>::__regex_word.Howard Hinnant2013-03-071-0/+4
| | | | llvm-svn: 176640
* Change _LIBCPP_TYPE_VIS to use __type_visibility__(default) instead of ↵Howard Hinnant2013-03-071-2/+6
| | | | | | __visibility__(default) when available. This change makes just the type_info visible so that types like vectors and strings can be used as exception objects across dylib boundaries even when hidden visibility is specified globally (at the command line), and yet this allows clients to hide the member functions of things like vector and string (with global visibility commands). llvm-svn: 176639
* No functionality change at this time. I've split _LIBCPP_VISIBLE up into ↵Howard Hinnant2013-03-0663-777/+784
| | | | | | two flags: _LIBCPP_TYPE_VIS and _LIBCPP_FUNC_VIS. This is in preparation for taking advantage of clang's new __type_visibility__ attribute. llvm-svn: 176593
* Have basic_istream::read call sgetn intead of sbumpc individual characters. ↵Howard Hinnant2013-03-061-10/+3
| | | | | | This addresses http://llvm.org/bugs/show_bug.cgi?id=15427. llvm-svn: 176573
* Correct silly type-o. Thanks Richard.Howard Hinnant2013-03-061-1/+1
| | | | llvm-svn: 176568
* The bitset(unsigned long long) constructor was broken by the constexpr ↵Howard Hinnant2013-03-061-0/+7
| | | | | | additions only on 32 bit platforms. Fixed. This addresses http://llvm.org/bugs/show_bug.cgi?id=15444. llvm-svn: 176559
* Michael van der Westhuizen: correction to the libcxx build instructions when ↵Howard Hinnant2013-02-261-1/+1
| | | | | | built with libcxxrt on Linux. llvm-svn: 176093
* Alexey Samsonov: #ifdefs out undefined function in static build of libc++ ↵Howard Hinnant2013-02-252-3/+10
| | | | | | w/o RTTI. llvm-svn: 176026
* 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
OpenPOWER on IntegriCloud