You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/include
Daniel Sanders fda3549c01 Merging r261088:
------------------------------------------------------------------------
r261088 | dsanders | 2016-02-17 13:16:31 +0000 (Wed, 17 Feb 2016) | 21 lines

[libcxx] Fix definition of regex_traits::__regex_word on big-endian glibc systems

Summary:
On glibc, the bits used for the various character classes is endian dependant
(see _ISbit() in ctypes.h) but __regex_word does not account for this and uses
a spare bit that isn't spare on big-endian. On big-endian, it overlaps with the
bit for graphic characters which causes '-', '@', etc. to be considered a word
character.

Fixed this by defining the value using _ISbit(15) on MIPS glibc systems. We've
restricted this to MIPS for now to avoid the risk of introducing failures in
other targets.

Fixes PR26476.

Reviewers: hans, mclow.lists

Subscribers: dsanders, cfe-commits

Differential Revision: http://reviews.llvm.org/D17132

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/branches/release_38@261097 91177308-0d34-0410-b5e6-96231b3b80d8
10 years ago
..
experimental Fix initialzation order in dynarray 10 years ago
ext Use __rebind_pointer to avoid #ifdef block 10 years ago
support Add initial support for the MUSL C library. 10 years ago
CMakeLists.txt [libcxx] Capture configuration information when installing the libc++ headers 10 years ago
__bit_reference Get tests running with warnings. Fix warnings in headers and tests 11 years ago
__config Put the definition of _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK in the right place. 10 years ago
__config_site.in Add initial support for the MUSL C library. 10 years ago
__debug Print log/error messages on stderr, not stdout 11 years ago
__functional_03 [libcxx] Fix PR23589: std::function doesn't recognize null pointer to varargs function. 10 years ago
__functional_base Fix a corner case that involved calling rethrow_if_nested with a type that had a deleted operator&. Added a test to catch this as well. Thanks to Ville for the heads-up. 10 years ago
__functional_base_03 [libcxx] Rewrite C++03 __invoke. 10 years ago
__hash_table Use __rebind_pointer to avoid #ifdef block 10 years ago
__locale Use libcxx's default rune table with the Musl C library. 10 years ago
__mutex_base Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
__nullptr Factor definition of std::nullptr_t out of <cstddef> into a header that can also be used by <stddef.h>. 10 years ago
__refstring Fix some -Wundef issues. 11 years ago
__split_buffer Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
__sso_allocator Handle function name conflicts in _LIBCPP_MSVCRT mode 11 years ago
__std_stream Enable and fix warnings during the build. 10 years ago
__tree First half of LWG#2354: 'Unnecessary copying when inserting into maps with braced-init syntax' 10 years ago
__tuple [libcxx] LWG2485: get() should be overloaded for const tuple&&. Patch from K-Ballo. 10 years ago
__undef___deallocate Handle function name conflicts in _LIBCPP_MSVCRT mode 11 years ago
__undef_min_max Fix-it suggestion for fixing min or max defines on Windows. 12 years ago
algorithm Merging r257682: 10 years ago
array [libcxx] LWG2485: get() should be overloaded for const tuple&&. Patch from K-Ballo. 10 years ago
atomic Fix various GCC mis-configurations for newer versions. 10 years ago
bitset Add 3 more missing inline/visibility attributes. 10 years ago
cassert Windows support by Ruben Van Boxem. 14 years ago
ccomplex Windows support by Ruben Van Boxem. 14 years ago
cctype Split <ctype.h> out of <cctype>. 10 years ago
cerrno Split <errno.h> out of <cerrno>. 10 years ago
cfenv Fix incorrect file header. This is <cfenv> not <cctype>. 10 years ago
cfloat Split <float.h> out of <cfloat>. 10 years ago
chrono Last bit of P0006; mark it as complete 10 years ago
cinttypes Split <inttypes.h> out of <cinttypes>. 10 years ago
ciso646 Windows support by Ruben Van Boxem. 14 years ago
climits Windows support by Ruben Van Boxem. 14 years ago
clocale Make support for thread-unsafe C functions optional. 11 years ago
cmath Split <math.h> out of <cmath>. 10 years ago
codecvt Update synopsis in <locale> to match LWG Issue 2229. No code change 12 years ago
complex Implement literal suffixes for compled 12 years ago
complex.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 10 years ago
condition_variable Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
csetjmp Split <setjmp.h> out of <csetjmp>. 10 years ago
csignal Windows support by Ruben Van Boxem. 14 years ago
cstdarg Windows support by Ruben Van Boxem. 14 years ago
cstdbool Windows support by Ruben Van Boxem. 14 years ago
cstddef PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 10 years ago
cstdint Windows support by Ruben Van Boxem. 14 years ago
cstdio Split <stdio.h> out of <cstdio>. 10 years ago
cstdlib Split <stdlib.h> out of <cstdlib>. 10 years ago
cstring Revert r249929 ("Split <string.h> out of <cstring>"). 10 years ago
ctgmath Windows support by Ruben Van Boxem. 14 years ago
ctime Make support for thread-unsafe C functions optional. 11 years ago
ctype.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 10 years ago
cwchar Unrevert r249889, and XFAIL the test for Darwin, where the libc apparently doesn't provide a correct overload set for some functions. 10 years ago
cwctype Split <wctype.h> out of <cwctype>. 10 years ago
deque Add static_assert to set/multiset/map/multimap/forward_list/deque that the allocator's value_type match the container's value_type. vector/unordered/list/string already do this. Add tests for all the containers to verify this. 10 years ago
errno.h Cleanup foo.h headers and __config to work in C 10 years ago
exception Fix a corner case that involved calling rethrow_if_nested with a type that had a deleted operator&. Added a test to catch this as well. Thanks to Ville for the heads-up. 10 years ago
float.h Cleanup foo.h headers and __config to work in C 10 years ago
forward_list Use __rebind_pointer to avoid #ifdef block 10 years ago
fstream Add option to disable access to the global filesystem namespace. 11 years ago
functional Fix LWG#2489: mem_fn() should be noexcept 10 years ago
future Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
initializer_list Apply constexpr to initializer_list for c++1y. 12 years ago
inttypes.h Cleanup foo.h headers and __config to work in C 10 years ago
iomanip Implement LWG #2344: quoted()'s interaction with padding is unclear. I think that anyone using quoted with padding is really confused, but it should work the way the rest of iostreams works. 12 years ago
ios Implement P0004R1 'Remove Deprecated iostreams aliases' 10 years ago
iosfwd Revert: Revert r227804: Use fseek/ftell instead of fseeko/ftello when Newlib is the libc 11 years ago
iostream Make the presence of stdin and stdout optional. 11 years ago
istream Revert "Remove visibility attributes from out-of-class method definitions in iostreams." 10 years ago
iterator Merging r257682: 10 years ago
limits [WebAssembly] Set std::numeric_limits's traps field for WebAssembly. 10 years ago
list Remove unsafe "__as_link()" cast member function. 10 years ago
locale Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
map First half of LWG#2354: 'Unnecessary copying when inserting into maps with braced-init syntax' 10 years ago
math.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 10 years ago
memory Preemptively disable unsigned integer sanitization in 32 and 64 bit versions of __murmur2_or_cityhash. This lets people use the unsigned integer overflow checker in UBSAN w/o getting hits from libc++'s hash code (where the unsigned integer overflow is legal and deliberate)> Patch by @danielaustin. Reviewed as: http://reviews.llvm.org/D15973 10 years ago
module.modulemap Remove __config module to avoid #include cycle when libc headers include libc++'s <foo.h> headers. 10 years ago
mutex Do not include pthread.h and sched.h when threads are disabled 10 years ago
new [libcxx] Rework sized delete. 11 years ago
numeric [libcxx] Fix use of operator comma where the types can be user defined 11 years ago
ostream Revert "Remove visibility attributes from out-of-class method definitions in iostreams." 10 years ago
queue Move the default template arguments into the forward declarations for the container adapters: stack and queue. References PR#22605. 11 years ago
random Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
ratio Missing file from last commit 10 years ago
regex Merging r261088: 10 years ago
scoped_allocator Fix LWG#2476: scoped_allocator_adaptor is not assignable 10 years ago
set Add static_assert to set/multiset/map/multimap/forward_list/deque that the allocator's value_type match the container's value_type. vector/unordered/list/string already do this. Add tests for all the containers to verify this. 10 years ago
setjmp.h Cleanup foo.h headers and __config to work in C 10 years ago
shared_mutex Implement N4508: shared_mutex. Reviewed as http://reviews.llvm.org/D10480 11 years ago
sstream Revert "Remove visibility attributes from out-of-class method definitions in iostreams." 10 years ago
stack Move the default template arguments into the forward declarations for the container adapters: stack and queue. References PR#22605. 11 years ago
stddef.h PR25118: move system_header pragma before uses of include_next to avoid extension warnings for people finding libc++ headers via -I paths. 10 years ago
stdexcept Fix unused private field warning in stdexcept after r207695. 11 years ago
stdio.h Split <stdio.h> out of <cstdio>. 10 years ago
stdlib.h Cleanup foo.h headers and __config to work in C 10 years ago
streambuf Revert "Remove visibility attributes from out-of-class method definitions in iostreams." 10 years ago
string Merging r257682: 10 years ago
strstream No functionality change at this time. I've split _LIBCPP_VISIBLE up into two flags: _LIBCPP_TYPE_VIS and _LIBCPP_FUNC_VIS. This is in preparation for taking advantage of clang's new __type_visibility__ attribute. 13 years ago
system_error Fix most GCC warnings during build. Only -Wattribute left. 10 years ago
tgmath.h Windows support by Ruben Van Boxem. 14 years ago
thread Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
tuple [libcxx] LWG2485: get() should be overloaded for const tuple&&. Patch from K-Ballo. 10 years ago
type_traits Missed this on the previous (255517) commit 10 years ago
typeindex Nico Rieck: this patch series fixes visibility issues on Windows as explained in <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-August/031214.html>. 12 years ago
typeinfo RTTI Uniqueness: remove __name_for_load function. 12 years ago
unordered_map Use __rebind_pointer to avoid #ifdef block 10 years ago
unordered_set Implement the first part of N4258: 'Cleaning up noexcept in the Library'. This patch deals with swapping containers, and implements a more strict noexcept specification (a conforming extension) than the standard mandates. 10 years ago
utility [libcxx] Fix LWG Issue #2367 - Fixing std::tuple and std::pair's default constructors. 10 years ago
valarray Mark declarations of externally instantiated functions as inline so GCC doesn't complain. 10 years ago
vector Cleanup: move visibility/linkage attributes to the first declaration. 10 years ago
wchar.h Unrevert r249889, and XFAIL the test for Darwin, where the libc apparently doesn't provide a correct overload set for some functions. 10 years ago
wctype.h Split <wctype.h> out of <cwctype>. 10 years ago