diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-02-18 17:21:43 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-02-18 17:21:43 +0100 |
commit | df5ed150ee5fbcb8255e05eed978c4af2b3d9bcc (patch) | |
tree | 7284f5f2f5d9c61c70372982cffec77fbf4afca9 | |
parent | fe79d652c96b53384ddfa43e312cb0010251391b (diff) | |
download | gcc-df5ed150ee5fbcb8255e05eed978c4af2b3d9bcc.zip gcc-df5ed150ee5fbcb8255e05eed978c4af2b3d9bcc.tar.gz gcc-df5ed150ee5fbcb8255e05eed978c4af2b3d9bcc.tar.bz2 |
rs6000: Fix up posix_memalign call in _mm_malloc [PR104598]
The uglification changes went in one spot too far and uglified also
the anem of function, posix_memalign should be called like that and
not a non-existent function instead of it.
2022-02-18 Jakub Jelinek <jakub@redhat.com>
PR target/104257
PR target/104598
* config/rs6000/mm_malloc.h (_mm_malloc): Call posix_memalign
rather than __posix_memalign.
-rw-r--r-- | gcc/config/rs6000/mm_malloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/mm_malloc.h b/gcc/config/rs6000/mm_malloc.h index 721f756..ae47cac 100644 --- a/gcc/config/rs6000/mm_malloc.h +++ b/gcc/config/rs6000/mm_malloc.h @@ -47,7 +47,7 @@ _mm_malloc (size_t __size, size_t __alignment) return malloc (__size); if (__alignment < __vec_align) __alignment = __vec_align; - if (__posix_memalign (&__ptr, __alignment, __size) == 0) + if (posix_memalign (&__ptr, __alignment, __size) == 0) return __ptr; else return NULL; |