]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Extend max_align_t special case to 64-bit HP-UX [PR77691]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Jan 2023 10:58:13 +0000 (10:58 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 12 Jan 2023 20:57:34 +0000 (20:57 +0000)
commitf629f63d2d9d7ad2c43f8e451f0f6e32b5f4d06a
tree9628467db8ba9df22445aca52f06bda7d92f384a
parentac1c7fcce1f57ba83cfe868f82f8c9eb776ddc32
libstdc++: Extend max_align_t special case to 64-bit HP-UX [PR77691]

GCC's std::max_align_t doesn't agree with the system malloc on HP-UX, so
generalize the current hack for Solaris to apply to that target too.

libstdc++-v3/ChangeLog:

PR libstdc++/77691
* include/experimental/memory_resource
(_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
(do_allocate, do_deallocate): Check it.
* testsuite/experimental/memory_resource/new_delete_resource.cc:
Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
libstdc++-v3/include/experimental/memory_resource
libstdc++-v3/testsuite/experimental/memory_resource/new_delete_resource.cc
This page took 0.054257 seconds and 5 git commands to generate.