This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68101] Provide a way to allocate arrays aligned to 32 bytes
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Oct 2015 10:22:24 +0000
- Subject: [Bug fortran/68101] Provide a way to allocate arrays aligned to 32 bytes
- Auto-submitted: auto-generated
- References: <bug-68101-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68101
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I would say dependent on an environment variable libgfortran could use
posix_memalign to allocate to a requested alignment. IIRC it also inlines
some direct malloc calls into the code thus those would need to be adjusted as
well (for those the compiler can take advantage of the extra alignment as
well).
Alternatives are C11 aligned_alloc.