From 8fca9fcec1bf906fd74179dabd4a411aac457d0c Mon Sep 17 00:00:00 2001 From: Toby Jaffey Date: Wed, 17 Dec 2025 15:51:19 +0000 Subject: [PATCH] Disable strict C99, as binary constants are currently used in rv32c code --- hosts/host-sdl/Makefile | 2 +- hosts/host/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/host-sdl/Makefile b/hosts/host-sdl/Makefile index a71acdc..f6d9034 100644 --- a/hosts/host-sdl/Makefile +++ b/hosts/host-sdl/Makefile @@ -10,7 +10,7 @@ CFLAGS += `pkg-config sdl3 --cflags` endif CFLAGS += -Wall -Werror -Wno-gnu-binary-literal -CFLAGS += -pedantic -std=c99 -O0 -g +CFLAGS += -O0 -g CFLAGS += -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=$(shell echo "1024 * 1024 * 8" | bc) all: diff --git a/hosts/host/Makefile b/hosts/host/Makefile index 02d1959..b7c6038 100644 --- a/hosts/host/Makefile +++ b/hosts/host/Makefile @@ -1,7 +1,7 @@ TOPDIR=../.. all: - gcc -g -Wall -Werror -pedantic -std=c99 -Wno-gnu-binary-literal -O0 -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=65536 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host ${TOPDIR}/uvm32/uvm32.c host.c + gcc -g -Wall -Werror -Wno-gnu-binary-literal -O0 -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=65536 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host ${TOPDIR}/uvm32/uvm32.c host.c clean: rm -f host