From c3b18e4034a9c461ebc414a2b788aeb5a73a0688 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Thu, 10 Feb 2022 13:24:14 +0100 Subject: [PATCH] Makefile: use O2 optimization level O3 introduces too many latent modifications, which makes it hard to reason about specific test executions. Signed-off-by: Pawel Wieczorkiewicz --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1ed62668..0f0db4a1 100644 --- a/Makefile +++ b/Makefile @@ -122,7 +122,7 @@ COMMON_FLAGS += -DKTF_ACPICA endif AFLAGS := $(COMMON_FLAGS) -D__ASSEMBLY__ -nostdlib -nostdinc -CFLAGS := $(COMMON_FLAGS) -std=gnu99 -O3 -g -Wall -Wextra -ffreestanding -nostdlib -nostdinc +CFLAGS := $(COMMON_FLAGS) -std=gnu99 -O2 -g -Wall -Wextra -ffreestanding -nostdlib -nostdinc CFLAGS += -mno-red-zone -mno-mmx -mno-sse -mno-sse2 CFLAGS += -fno-stack-protector -fno-exceptions -fno-builtin -fomit-frame-pointer -fcf-protection="none" CFLAGS += -mcmodel=kernel -fno-pic -fno-asynchronous-unwind-tables -fno-unwind-tables