From 5cc92304df93f74c513991f1ab701ee1f19b3c46 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Sat, 3 Jun 2023 20:10:56 +0200 Subject: [PATCH] makefiles/toolchain/gnu.inc.mk: fix compilation The `--param=min-pagesize=0` needed since GCC 12 is still needed with GCC 13. This time at least the message is more meaningful: note: source object is likely at address zero This is something that is not expected in a userspace app, but with bare metal MCUs and often flash or memory mapped I/O starting from address zero, this warning prevents legitimate code from compiling. --- makefiles/toolchain/gnu.inc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/toolchain/gnu.inc.mk b/makefiles/toolchain/gnu.inc.mk index 0be76867e994..f2f2435a204c 100644 --- a/makefiles/toolchain/gnu.inc.mk +++ b/makefiles/toolchain/gnu.inc.mk @@ -36,6 +36,6 @@ include $(RIOTMAKE)/tools/gdb.inc.mk # Data address spaces starts at zero for all supported architectures. This fixes # compilation at least on MSP430 and AVR. # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 -ifeq ($(GCC_VERSION),12) +ifneq (,$(filter $(GCC_VERSION),12 13)) CFLAGS += --param=min-pagesize=0 endif