diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-03-10 22:17:57 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-03-10 22:17:57 +0000 |
commit | 493743fe81c081d1ce3162ee01519fe450fbec8b (patch) | |
tree | c7c6dd4c4f20d69520433867925f3dd29f0be18f /auxprogs | |
parent | 6f97a1ba75dc053c22aa7a52848a7ca12ce71716 (diff) |
Quadrics MPI build fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5743 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'auxprogs')
-rw-r--r-- | auxprogs/mpiwrap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/auxprogs/mpiwrap.c b/auxprogs/mpiwrap.c index 5e1e6325..30bfc49e 100644 --- a/auxprogs/mpiwrap.c +++ b/auxprogs/mpiwrap.c @@ -394,8 +394,12 @@ static long sizeofOneNamedTy ( MPI_Datatype ty ) if (ty == MPI_BYTE) return 1; /* MPI_PACKED */ /* new in MPI2: */ +# if defined(MPI_WCHAR) if (ty == MPI_WCHAR) return sizeof(wchar_t); +# endif +# if defined(MPI_SIGNED_CHAR) if (ty == MPI_SIGNED_CHAR) return sizeof(signed char); +# endif if (ty == MPI_UNSIGNED_LONG_LONG) return sizeof(unsigned long long int); if (ty == MPI_LONG_LONG_INT) return sizeof(signed long long int); /* Note: the following are named structs, not named basic types, @@ -467,6 +471,8 @@ void walk_type ( void(*f)(void*,long), char* base, MPI_Datatype ty ) f(base + offsetof(Ty,loc), sizeof(int)); return; } + if (ty == MPI_LB || ty == MPI_UB) + return; /* have zero size, so nothing needs to be done */ goto unhandled; /*NOTREACHED*/ } |