Task #3443
closed
Research: use c11 standard
Added by Victor Julien almost 5 years ago.
Updated over 4 years ago.
Description
Currently we use c99, or rather gnu99. c11 brings some nice improvements like thread local, atomics, anonymous structs and unions.
First step is to investigate if all platforms have a c11 compliant compiler available.
Snippet from my Gitlab-CI centos:6 builder:
centos:6:scl:
image: centos:6
stage: test
before_script:
- source setupenv.sh
- yum -y install epel-release centos-release-scl
- yum -y install devtoolset-8
- source /opt/rh/devtoolset-8/enable
...
This gets us:
GCC version 8.3.1 20190311 (Red Hat 8.3.1-3), C version 199901
Probably a stretch, but for good measure we should consider c18 while at it.
- Status changed from New to Closed
c18 is too recent for us. Support is absent in many of the supported platforms. c11 support has been added #3655.
Also available in: Atom
PDF