[petsc-dev] Request for comments: allow C99 internally

Lisandro Dalcin dalcinl at gmail.com
Mon Mar 9 13:47:15 CDT 2020


On Sat, 7 Mar 2020 at 08:48, Jed Brown <jed at jedbrown.org> wrote:

> I have a question for petsc-dev: Do you know anyone who needs to build
> PETSc with a compiler that doesn't support variadic macros and for-loop
> declarations?  (Both of these are in C99 and C++11, and supported by all
> tested configurations including compilers that don't fully implement
> these standards.)  Both MPICH and Open MPI use variable-length arrays
> and for-loop declarations, so you'd be hard-pressed building a modern
> stack with such a compiler.  I'm not proposing that we put these macros
> unguarded into the public headers, so a user of PETSc could still build
> with -std=c89 and the like.
>
>
Definitely +1 for variadic macros and for-loop declarations, but not VLAs.


-- 
Lisandro Dalcin
============
Research Scientist
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200309/65f9f90f/attachment.html>


More information about the petsc-dev mailing list