Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2016 18:16:55 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r426949 - in head/net/mpich: . files
Message-ID:  <201611231816.uANIGtqQ072275@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Wed Nov 23 18:16:55 2016
New Revision: 426949
URL: https://svnweb.freebsd.org/changeset/ports/426949

Log:
  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

Added:
  head/net/mpich/files/patch-src-include-mpiimpl.h   (contents, props changed)
Modified:
  head/net/mpich/Makefile

Modified: head/net/mpich/Makefile
==============================================================================
--- head/net/mpich/Makefile	Wed Nov 23 18:15:24 2016	(r426948)
+++ head/net/mpich/Makefile	Wed Nov 23 18:16:55 2016	(r426949)
@@ -2,7 +2,7 @@
 
 PORTNAME=	mpich
 PORTVERSION=	3.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net parallel
 MASTER_SITES=	http://www.mpich.org/static/downloads/${DISTVERSION}/
 

Added: head/net/mpich/files/patch-src-include-mpiimpl.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mpich/files/patch-src-include-mpiimpl.h	Wed Nov 23 18:16:55 2016	(r426949)
@@ -0,0 +1,11 @@
+--- 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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611231816.uANIGtqQ072275>