From a610598df6f0cb920ba877adbc9a29f83954df52 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Wed, 13 Dec 2023 19:00:17 +0100 Subject: [PATCH] added -fwrapv to CFLAGS to ensure that signed overflows have a well defined behavior --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 39bd3ad..082fc73 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,7 @@ else endif endif STRIP=$(CROSS_PREFIX)strip +CFLAGS+=-fwrapv # ensure that signed overflows behave as expected ifdef CONFIG_WERROR CFLAGS+=-Werror endif