From 0f938aed25199d779978afeff1f8078b7bd3611c Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 14 Dec 2025 16:37:08 +0100 Subject: [PATCH] package/python3: make SuperH tweak actually effective In commit a68899d49ec4c7f97dea0dcb9995e6a5d7b282c9 ("package/python3: work around GCC bug 121567"), we introduced a work around for a gcc bug, by reducing to -O1 the optimization level on SuperH. However, it turns out that this is not sufficient, as the build will only succeeded at -O0. Fixes: https://autobuild.buildroot.net/results/31f/31f34a983036b4135c12e5797b5c2258ab33e6c2/ Which is a config with BR2_OPTIMIZE_2=y, which means BR2_TOOLCHAIN_HAS_GCC_BUG_121567=y, and therefore -O1 is passed, but still the build fails. At -O0 the build doesn't fail. Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- package/python3/python3.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 0189a505b4..4e660ecee2 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -192,7 +192,7 @@ endif PYTHON3_CFLAGS = $(TARGET_CFLAGS) ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_121567),y) -PYTHON3_CFLAGS += -O1 +PYTHON3_CFLAGS += -O0 endif PYTHON3_CONF_ENV += \