aboutsummaryrefslogtreecommitdiff
path: root/libgomp/libgomp.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-11-18 09:07:31 +0100
committerJakub Jelinek <jakub@redhat.com>2021-11-18 09:07:31 +0100
commit7a2aa63fad06a72d9770b08491f1a7809eac7c50 (patch)
treec251c62b7511133488cbaf393625f35042911603 /libgomp/libgomp.h
parenta72b7a455c144b29609c8ecf4dff12dc9040cf2c (diff)
downloadgcc-7a2aa63fad06a72d9770b08491f1a7809eac7c50.zip
gcc-7a2aa63fad06a72d9770b08491f1a7809eac7c50.tar.gz
gcc-7a2aa63fad06a72d9770b08491f1a7809eac7c50.tar.bz2
libgomp: Fix up aligned_alloc arguments [PR102838]
C says that aligned_alloc size must be an integral multiple of alignment. While glibc doesn't care about it, apparently Solaris does. So, this patch decreases the priority of aligned_alloc among the other variants because it needs more work and can waste more memory and rounds up the size to multiple of alignment. 2021-11-18 Jakub Jelinek <jakub@redhat.com> PR libgomp/102838 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over memalign over posix_memalign over aligned_alloc over fallback with malloc instead of aligned_alloc over _aligned_alloc over posix_memalign over memalign over fallback with malloc. For aligned_alloc, round up size up to multiple of al.
Diffstat (limited to 'libgomp/libgomp.h')
0 files changed, 0 insertions, 0 deletions