Просмотр исходного кода

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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Thomas Petazzoni 1 месяц назад
Родитель
Сommit
0f938aed25
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      package/python3/python3.mk

+ 1 - 1
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 += \