Re: [hwloc-devel] C99 will be back soon

2017-09-28 Thread Jeff Squyres (jsquyres)
On Sep 28, 2017, at 8:41 AM, Brice Goglin  wrote:
> 
> Turns out Microsoft Visual Studio doesn't support most of C99
> (at least dynamic arrays and mixed declaration/code).

Good lord; they don't even support mixing declarations/code?  That... is 
unfortunate.

> I am using some glue for now. However I am not 100% sure
> I'll remain happy to restrict hwloc just to support such a
> dump compiler (MinGW doesn't have any issue with C99).

Yeah, I wonder if MVS was the reason we stayed out of C99 all those years ago.  
Open MPI stopped supporting MVS -- that may well have been the last sticking 
point that allowed us to move Open MPI to C99.

-- 
Jeff Squyres
jsquy...@cisco.com

___
hwloc-devel mailing list
hwloc-devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-devel


Re: [hwloc-devel] C99 will be back soon

2017-09-28 Thread Brice Goglin
Turns out Microsoft Visual Studio doesn't support most of C99
(at least dynamic arrays and mixed declaration/code).

I am using some glue for now. However I am not 100% sure
I'll remain happy to restrict hwloc just to support such a
dump compiler (MinGW doesn't have any issue with C99).

Brice




Le 27/09/2017 20:52, Brice Goglin a écrit :
> Hello
>
> hwloc was using C99 7 years ago. We had to revert that in hwloc 1.2
> because some software embedding hwloc needed to support some non-C99
> compilers. Things have changed and C99 is well supported now. So we're
> going to use C99 in hwloc, at least for simple features such as dynamic
> arrays on the stack and designated structure initializer. configure will
> fail if the compiler isn't C99.
>
> Brice
>

___
hwloc-devel mailing list
hwloc-devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-devel