aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-07-26 15:02:05 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-07-26 15:02:05 +0100
commit4957b284f1ac52ce14b15fe3b915d46776d624ec (patch)
treec660dc5850b246f90c589c6f332a70c8e3c86214 /gcc
parent612c9c702e2c9ebf0058d659d57371605c2e0020 (diff)
downloadgcc-4957b284f1ac52ce14b15fe3b915d46776d624ec.zip
gcc-4957b284f1ac52ce14b15fe3b915d46776d624ec.tar.gz
gcc-4957b284f1ac52ce14b15fe3b915d46776d624ec.tar.bz2
Modify some library internals to work without <stdint.h>
std::__detail::__clp2 used uint_fast32_t and uint_fast64_t without checking _GLIBCXX_USE_C99_STDINT_TR1 which was a potential bug. A simpler implementation based on the new std::__ceil2 code performs better and doesn't depend on <stdint.h> types. std::align and other C++11 functions in <memory> where unnecessarily missing when _GLIBCXX_USE_C99_STDINT_TR1 was not defined. * include/bits/hashtable_policy.h (__detail::__clp2): Use faster implementation that doesn't depend on <stdint.h> types. * include/std/memory (align) [!_GLIBCXX_USE_C99_STDINT_TR1]: Use std::size_t when std::uintptr_t is not usable. [!_GLIBCXX_USE_C99_STDINT_TR1] (pointer_safety, declare_reachable) (undeclare_reachable, declare_no_pointers, undeclare_no_pointers): Define independent of _GLIBCXX_USE_C99_STDINT_TR1. From-SVN: r263003
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions