freebsd-ports/net/mpich/files/patch-src-include-mpiimpl.h
Tijl Coosemans 0ed1aea7c1 Add patch to apply alignment attribute to a struct instead of a typedef.
This rounds the size of the struct to a multiple of the alignment such that
malloc and friends allocate memory with the correct alignment.

PR:		214784
MFH:		2016Q4
2016-11-23 18:16:55 +00:00

11 lines
374 B
C

--- src/include/mpiimpl.h.orig 2015-11-10 02:39:01 UTC
+++ src/include/mpiimpl.h
@@ -1528,7 +1528,7 @@ typedef struct MPID_Request {
#ifdef MPID_DEV_REQUEST_DECL
MPID_DEV_REQUEST_DECL
#endif
-} MPID_Request ATTRIBUTE((__aligned__(32)));
+} ATTRIBUTE((__aligned__(32))) MPID_Request;
extern MPIU_Object_alloc_t MPID_Request_mem;
/* Preallocated request objects */