This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/68101] Provide a way to allocate arrays aligned to 32 bytes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]