From eacad5e30ee82f9ffd4c7a744643d094631f7044 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 23 May 2025 09:48:37 +0000 Subject: [PATCH] libretro-scummvm: fix armv7 GCC 15.1 internal compiler error ref: https://github.com/libretro/scummvm/commit/e566a6432fd1951417bf78280cc7c741957fc419 --- ...mv7-GCC-15.1-internal-compiler-error.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/emulation/libretro-scummvm/patches/0003-libretro-fix-armv7-GCC-15.1-internal-compiler-error.patch diff --git a/packages/emulation/libretro-scummvm/patches/0003-libretro-fix-armv7-GCC-15.1-internal-compiler-error.patch b/packages/emulation/libretro-scummvm/patches/0003-libretro-fix-armv7-GCC-15.1-internal-compiler-error.patch new file mode 100644 index 0000000000..29728dfcb3 --- /dev/null +++ b/packages/emulation/libretro-scummvm/patches/0003-libretro-fix-armv7-GCC-15.1-internal-compiler-error.patch @@ -0,0 +1,22 @@ +From e566a6432fd1951417bf78280cc7c741957fc419 Mon Sep 17 00:00:00 2001 +From: Giovanni Cascione +Date: Thu, 22 May 2025 20:51:47 +0200 +Subject: [PATCH] LIBRETRO: BUILD: fix armv7 GCC 15.1 internal compiler error + +--- + backends/platform/libretro/Makefile | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/backends/platform/libretro/Makefile b/backends/platform/libretro/Makefile +index 0181825bfbbc..383a25cab706 100644 +--- a/backends/platform/libretro/Makefile ++++ b/backends/platform/libretro/Makefile +@@ -552,6 +552,8 @@ ifneq (,$(findstring $(platform), wiiu vita)) + DEFINES += -Os + else ifneq (,$(findstring $(platform), ios osx)) + DEFINES += -O1 ++else ifneq (,$(findstring $(platform), armv7)) # fixes a GCC 15.1 internal compiler error. TODO check if it is fixed in GCC newer releases. ++ DEFINES += -O1 + else ifneq (,$(findstring $(platform), msvc genode rpi)) + DEFINES += -O2 + else