Skip to content

Commit

Permalink
Merge #19704
Browse files Browse the repository at this point in the history
19704: makefiles/toolchain/gnu.inc.mk: fix compilation r=dylad a=maribu

### Contribution description

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.


Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
  • Loading branch information
bors[bot] and maribu authored Jun 4, 2023
2 parents 0dce63b + 5cc9230 commit d9d8991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefiles/toolchain/gnu.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9d8991

Please sign in to comment.