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.