added -fwrapv to CFLAGS to ensure that signed overflows have a well defined behavior

This commit is contained in:
Fabrice Bellard 2023-12-13 19:00:17 +01:00
parent 9e52965257
commit a610598df6

View file

@ -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