Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] C99 in wrapper compilers?
From: N.M. Maclaren (nmm1_at_[hidden])
Date: 2012-11-20 11:08:44


On Nov 20 2012, Jeff Squyres wrote:
>
>> I very, VERY strongly advise you to decide what you mean by that. Very
>> few compilers that 'support' C99 do so for the whole language, and most
>> use the more system-dependent features in very different ways. In
>> theory, just enabling C99 could break code, and I know of a few ways
>> that actually occurs. I doubt that they will affect Open MPI.
>
> Some Open MPI developers just want to use some of the C99 syntax, such as
> the struct field initialization syntax.

Which is one of the safer features, provided that you use it cleanly.
My point is that it is important to decide WHICH features are allowed,
not least because WG14 have made some C99 features optional in C11,
and C++11 has adopted only some C99 features. Nowadays, almost all
C compilers are actually tweaked C++ ones.

Regards,
Nick Maclaren.