Skip to content

Commit 228b9f5

Browse files
matthijskooijmanadamvoss
authored andcommitted
Enable C11 support
This uses the gnu11 standard, which is C11 with GNU extensions. Previously, gnu89 was being used, which is pretty ancient by now. C99 brings some important improvements, some of which were already available and used even without this option. C11 is more recent and brings more minor improvements. Most notable feature is the static_assert statement, allowing checking invariants at compiletime using the full C expressions.
1 parent 06b94fb commit 228b9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ compiler.warning_flags.all=-Wall -Wextra
1919

2020
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
2121
compiler.c.cmd=arm-none-eabi-gcc
22-
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu89 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
22+
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
2323
compiler.c.elf.cmd=arm-none-eabi-gcc
2424
compiler.c.elf.flags=-Os -Wl,--gc-sections
2525
compiler.S.cmd=arm-none-eabi-gcc

0 commit comments

Comments
 (0)