[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1.3-224-g6b41df9

Service Account noreply at mpich.org
Fri Nov 14 13:54:24 CST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  6b41df96f4d42f6cbc8e9152f5a8700d4ce883ec (commit)
      from  8d26112786e9314c21716ede6bdb6633e7da7620 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/6b41df96f4d42f6cbc8e9152f5a8700d4ce883ec

commit 6b41df96f4d42f6cbc8e9152f5a8700d4ce883ec
Author: Antonio Pena Monferrer <apenya at mcs.anl.gov>
Date:   Thu Nov 13 19:50:07 2014 -0600

    Fix strict-aliasing rules break in Portals netmod
    
    Going from a macro to a function fixes the issue because of creating a
    copy of the pointer.
    
    Signed-off-by: Ken Raffenetti <raffenet at mcs.anl.gov>

diff --git a/src/mpid/ch3/channels/nemesis/netmod/portals4/ptl_impl.h b/src/mpid/ch3/channels/nemesis/netmod/portals4/ptl_impl.h
index 5ab1eef..8f39d73 100644
--- a/src/mpid/ch3/channels/nemesis/netmod/portals4/ptl_impl.h
+++ b/src/mpid/ch3/channels/nemesis/netmod/portals4/ptl_impl.h
@@ -58,7 +58,9 @@ typedef struct {
 } MPID_nem_ptl_req_area;
 
 /* macro for ptl private in req */
-#define REQ_PTL(req) ((MPID_nem_ptl_req_area *)((req)->ch.netmod_area.padding))
+static inline MPID_nem_ptl_req_area * REQ_PTL(MPID_Request *req) {
+    return (MPID_nem_ptl_req_area *)req->ch.netmod_area.padding;
+}
 
 #define MPID_nem_ptl_init_req(req_) do {                        \
         int i;                                                  \

-----------------------------------------------------------------------

Summary of changes:
 .../channels/nemesis/netmod/portals4/ptl_impl.h    |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list