c2x --> c23. Supported since gcc 14.1.0.

This commit is contained in:
profi200 2024-05-15 17:03:35 +02:00 committed by profi200
parent f9786b14a1
commit 3e91716c80
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ endif
#---------------------------------------------------------------------------------
ARCH := -march=armv6k+vfpv2 -mtune=mpcore -mfloat-abi=hard -mtp=soft -marm -mthumb-interwork -masm-syntax-unified
CFLAGS := $(ARCH) -std=c2x -O2 -gdwarf-4 -flto -mword-relocations \
CFLAGS := $(ARCH) -std=c23 -O2 -gdwarf-4 -flto -mword-relocations \
-ffunction-sections -fno-math-errno -Wall -Wextra
CFLAGS += $(INCLUDE) $(DEFINES)

View File

@ -34,7 +34,7 @@ endif
#---------------------------------------------------------------------------------
ARCH := -march=armv5te -mtune=arm946e-s -mfloat-abi=soft -mtp=soft -marm -mthumb-interwork -masm-syntax-unified
CFLAGS := $(ARCH) -std=c2x -O2 -gdwarf-4 -flto -mword-relocations \
CFLAGS := $(ARCH) -std=c23 -O2 -gdwarf-4 -flto -mword-relocations \
-ffunction-sections -Wall -Wextra
CFLAGS += $(INCLUDE) $(DEFINES)