Skip to content

Commit de32e8c

Browse files
authored
Merge pull request #273 from whiz00/build-fix
fix 'array subscript 0 is outside array bounds' for newer gcc versions
2 parents 6f86906 + 5217eb6 commit de32e8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@ ifeq ($(DEBUG), 1)
323323
C_SRC += $(RTT_SRC)/RTT/SEGGER_RTT.c
324324
endif
325325

326+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
327+
ifneq ($(findstring 12.,$(shell $(CC) --version 2>/dev/null)),)
328+
CFLAGS += --param=min-pagesize=0
329+
endif
330+
326331
#------------------------------------------------------------------------------
327332
# Linker Flags
328333
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)