Can somebody confirm that configure is adding "-c9x" or "-c99" to CFLAGS
with this compiler?
If not then r32555 could possibly be reverted in favor of adding the proper
compiler flag.
Also, I am suspicious of this failure because even without a language-level
option pgcc 12.9 and 13.4 compile the following:
struct S { int i; double d; };
struct S x = {1,0};
int main (void)
{
struct S y = { .i = x.i };
return y.i;
}
-Paul
On Wed, Aug 20, 2014 at 7:20 AM, Nathan Hjelm <[email protected]> wrote:
> Really? That means PGI 2013 is NOT C99 compliant! Figures.
>
> -Nathan
>
> On Tue, Aug 19, 2014 at 10:48:48PM -0400, [email protected]
> wrote:
> > Author: ggouaillardet (Gilles Gouaillardet)
> > Date: 2014-08-19 22:48:47 EDT (Tue, 19 Aug 2014)
> > New Revision: 32555
> > URL: https://svn.open-mpi.org/trac/ompi/changeset/32555
> >
> > Log:
> > btl/scif: use safe syntax
> >
> > PGI compilers 2013 and older do not support the following syntax :
> > mca_btl_scif_modex_t modex = {.port_id = mca_btl_scif_module.port_id};
> > so split it on two lines
> >
> > cmr=v1.8.2:reviewer=hjelmn
> >
> > Text files modified:
> > trunk/opal/mca/btl/scif/btl_scif_component.c | 3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > Modified: trunk/opal/mca/btl/scif/btl_scif_component.c
> >
> ==============================================================================
> > --- trunk/opal/mca/btl/scif/btl_scif_component.c Tue Aug 19
> 18:34:49 2014 (r32554)
> > +++ trunk/opal/mca/btl/scif/btl_scif_component.c 2014-08-19
> 22:48:47 EDT (Tue, 19 Aug 2014) (r32555)
> > @@ -208,7 +208,8 @@
> >
> > static int mca_btl_scif_modex_send (void)
> > {
> > - mca_btl_scif_modex_t modex = {.port_id =
> mca_btl_scif_module.port_id};
> > + mca_btl_scif_modex_t modex;
> > + modex.port_id = mca_btl_scif_module.port_id;
> >
> > return opal_modex_send (&mca_btl_scif_component.super.btl_version,
> &modex, sizeof (modex));
> > }
> > _______________________________________________
> > svn mailing list
> > [email protected]
> > http://www.open-mpi.org/mailman/listinfo.cgi/svn
>
> _______________________________________________
> devel mailing list
> [email protected]
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2014/08/15667.php
>
--
Paul H. Hargrove [email protected]
Future Technologies Group
Computer and Data Sciences Department Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory Fax: +1-510-486-6900