@philmoz@reyalphi guys, ,
Rev 6197 stubbornly refused to boot for me on ixus70_sd1000, but I think I found what
the problem is: the CFLAGS+=etc statements (lines 28 and 35) are followed by
(line 42): CFLAGS=-fno-inline -Os -fno-strict-aliasing -fno-schedule-insns2
Since line 42 has CFLAGS= and not CFLAGS+= previous data are wiped
Moving 'Disable GCC 10...etc' and 'ifdef OPT_WARNINGS' sections down and recompiling
did the trick (attached my diff)
wim
arm_rules.inc @line 25
# Disable GCC 10 (and later) optimisation that prevents build from booting on some cameras.
# See https://chdk.setepontos.com/index.php?topic=14281.0
ifneq ($(GCC_VERSION_MAJOR),$(filter $(GCC_VERSION_MAJOR),4 5 8 9))
CFLAGS+=-fno-tree-loop-distribute-patterns
endif
ifdef OPT_WARNINGS
CFLAGS+=-Wextra -Wunused
# Disable some warnings added in GCC 8
ifneq ($(GCC_VERSION_MAJOR),$(filter $(GCC_VERSION_MAJOR),4 5))
CFLAGS+=-Wno-builtin-declaration-mismatch -Wno-implicit-fallthrough -Wno-cast-function-type
endif
endif
# -fno-schedule-insns2 for this gcc bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644
# technically not required for gcc >= 4.6.3, and probably not required for vxworks cams
# see http://chdk.setepontos.com/index.php?topic=8273.msg100205#msg100205
CFLAGS=-fno-inline -Os -fno-strict-aliasing -fno-schedule-insns2