diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-10-01 10:32:10 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-10-01 10:32:10 +0200 |
commit | 998e434f8f9ce42842710af9e33c1b9732b22999 (patch) | |
tree | 81ef10d26946e81329f6d0227fb5b3807e04b366 /gcc/fortran/trans-openmp.c | |
parent | 701075864ac4d1c6cec936d10f9cfc2aeb8c1699 (diff) | |
download | gcc-998e434f8f9ce42842710af9e33c1b9732b22999.zip gcc-998e434f8f9ce42842710af9e33c1b9732b22999.tar.gz gcc-998e434f8f9ce42842710af9e33c1b9732b22999.tar.bz2 |
openmp: Add alloc_align attribute to omp_aligned_*alloc and testcase for omp_realloc
This patch adds alloc_align attribute to omp_aligned_{,c}alloc so that if
the first argument is constant, GCC can assume requested alignment.
Additionally, it adds testsuite coverage for omp_realloc which I haven't
managed to write in the patch from yesterday.
2021-10-01 Jakub Jelinek <jakub@redhat.com>
* omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
__alloc_align__ (1) attribute.
* testsuite/libgomp.c-c++-common/alloc-9.c: New test.
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions