This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49501] support ATTRIBUTES ALIGN in gfortran
- From: "stevenj at alum dot mit.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Jun 2011 17:38:55 +0000
- Subject: [Bug fortran/49501] support ATTRIBUTES ALIGN in gfortran
- Auto-submitted: auto-generated
- References: <bug-49501-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49501
--- Comment #1 from stevenj at alum dot mit.edu 2011-06-22 17:38:25 UTC ---
Actually, it looks like there is a way to allocate aligned memory, albeit a
bit ugly, thanks to Fortran 2003's C interoperability. Declare a bind(C)
interface to e.g. posix_memalign, and then use C_F_POINTER intrinsic to convert
this into a pointer to a Fortran array.