[Openmp-commits] [openmp] [OpenMP] Fix various alignment issues (PR #142376)
Rainer Orth via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jun 11 06:02:06 PDT 2025
================
@@ -73,7 +73,7 @@ static void bectl(kmp_info_t *th, bget_compact_t compact,
/* On IA-32 architecture with Linux* OS, malloc() does not
ensure 16 byte alignment */
-#if KMP_ARCH_X86 || !KMP_HAVE_QUAD
+#if KMP_ARCH_X86 || KMP_ARCH_SPARC || !KMP_HAVE_QUAD
----------------
rorth wrote:
I found this is complete mess: `glibc` `sysdeps/i386/malloc-alignment.` **does** `#define MALLOC_ALIGNMENT 16`, contrary to the comment (haven't checked if this has changed historically). Besides, `KMP_HAVE_QUAD` is a complete misnomer: it's **only** defined on x86 targets, so should probably be renamed to `KMP_X86_HAVE_QUAD` to reflect that.
https://github.com/llvm/llvm-project/pull/142376
More information about the Openmp-commits
mailing list