aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-10-12 00:21:11 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-10-12 00:21:11 +0100
commit49cb790a4c7be09fbb3f2e57595379d0cbbd9e54 (patch)
tree3edecd41269f5ea8a5db5ab7adca024655100032 /gcc/cgraphclones.c
parent47d31f1aa489dd5efca99747e377acc27a0cced2 (diff)
downloadgcc-49cb790a4c7be09fbb3f2e57595379d0cbbd9e54.zip
gcc-49cb790a4c7be09fbb3f2e57595379d0cbbd9e54.tar.gz
gcc-49cb790a4c7be09fbb3f2e57595379d0cbbd9e54.tar.bz2
PR libstdc++/77691 increase allocation size to at least alignment
It's not safe to assume that malloc(n) returns memory aligned to more than n, so when relying on the guaranteed alignment of malloc ensure that the number of bytes allocated is at least as large as the alignment. PR libstdc++/77691 * include/experimental/memory_resource (__resource_adaptor_imp): Do not allocate sizes smaller than alignment when relying on guaranteed alignment. * testsuite/experimental/memory_resource/new_delete_resource.cc: Adjust expected number of bytes allocated for alignof(max_align_t). From-SVN: r265068
Diffstat (limited to 'gcc/cgraphclones.c')
0 files changed, 0 insertions, 0 deletions