From abeffaea2a8c48d72b42bfded44eacdcd172aebd Mon Sep 17 00:00:00 2001 From: Hubert Badocha Date: Tue, 1 Oct 2024 12:29:03 +0200 Subject: [PATCH] Makefile.common: add -fno-strict-aliasing Newer versions of GCC take advantage of strict aliasing rule that we break, without explicitely warning about it. JIRA: RTOS-927 --- Makefile.common | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.common b/Makefile.common index e7062f0c..3dc7269d 100644 --- a/Makefile.common +++ b/Makefile.common @@ -124,6 +124,8 @@ EXPORT_LDFLAGS := $(LDFLAGS) # add our coding-style related options CFLAGS += -Wall -Wstrict-prototypes -fno-common +# TODO: try not to break this rule outside of kernel +CFLAGS += -fno-strict-aliasing CXXFLAGS += -Wall LDFLAGS += -z noexecstack