Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Jonathan Underwood (jonathan.underwood_at_[hidden])
Date: 2006-08-17 19:10:16

On 18/08/06, Brian Barrett <brbarret_at_[hidden]> wrote:
> On Aug 17, 2006, at 4:43 PM, Jonathan Underwood wrote:
> > Compiling an mpi program with gcc options -pedantic -Wall gives the
> > following warning:
> >
> > mpi.h:147: warning: ISO C90 does not support 'long long'
> >
> > So it seems that the openmpi implementation doesn't conform to C90. Is
> > this by design, or should it be reported as a bug?
> Well, MPI_LONG_LONG is a type we're supposed to support, and that
> means having 'long long' in the mpi.h file. I'm not really sure how
> to get around this, especially since there are a bunch of users out
> there that rely on MPI_LONG_LONG to send 64 bit integers around on 32
> bit platforms. So I suppose that it's by design.

OK, that seems reasonable.

I wonder then if the non-C90 conforming parts should be surrounded
with #ifndef __STRICT_ANSI__ - this is predefined when gcc is
expecting C90 conforming code. I am not sure if this is portable to
other compilers however. Probably not.

Best wishes,