Hello,
On 25/07/2022 10:02, Sebastian Huber wrote:
+cflags:
+- -std=c17
+- -pedantic
+- -Wextra
this test case causes build issue on several BSPs, because the
is not C17 compatible. Example error:
bsps/arm/beagle/include/bsp.h:298:5: error: 'asm' undeclared (first use
in this function)
On 25/07/2022 16:00, Joel Sherrill wrote:
This is OK but from what I see in applications, C99 is the version
actually in use.
C17 is the default version of GCC 10 and 12.
Threads are undefined in C99. Why would someone use such an old standard
with RTEMS? Anyway, if you think it is important
This is OK but from what I see in applications, C99 is the version actually
in use.
The avionics community I work with hasn't even adopted C11.
Even C++11/14 are just now getting some traction.
--joel
On Mon, Jul 25, 2022 at 3:03 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:
---
spec/build/testsuites/sptests/grp.yml | 2 +
spec/build/testsuites/sptests/spstdc17.yml | 22 +
testsuites/sptests/spstdc17/init.c | 57 ++
testsuites/sptests/spstdc17/spstdc17.doc | 12 +
4 files changed, 93 insertions(+)
create mode 100644