Bug#1122045: python3.13: Please drop -Os from CFLAGS for sh4
John Paul Adrian Glaubitz <[email protected]> Sat, 06 Dec 2025 11:26:04 +0100
| Newsgroups | gmane.linux.debian.ports.superh |
|---|---|
| Message-ID | <176501676458.2775695.2410365795154770578.reportbug__5896.40494888357$1765016853$gmane$org@login1.physik.fu-berlin.de> |
This is a multi-part MIME message sent by reportbug. --===============6727615884851191084== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Source: python3.13 Version: 3.13.9-1 Severity: normal Tags: patch User: [email protected] Usertags: sh4 X-Debbugs-Cc: [email protected] Hi, the previously applied workaround for sh4 to fix the internal compiler [1] error with gcc-14 can be dropped now since the gcc-15 package in unstable is using the new LRA-enabled backend on sh4 which isn't affected by the previous register allocation problems thanks to the new register allocator LRA. Thus, we can drop the workaround to build python3.13 with -Os on sh4: --- debian/rules.orig 2025-12-05 22:02:28.520256704 +0100 +++ debian/rules 2025-12-05 22:02:12.252160938 +0100 @@ -189,11 +189,7 @@ DPKG_CPPFLAGS += -DWITH_PYMALLOC_RADIX_TREE=0 DPKG_PIE_CPPFLAGS += -DWITH_PYMALLOC_RADIX_TREE=0 endif -# see https://gcc.gnu.org/PR81426 -ifneq (,$(filter $(DEB_HOST_ARCH), sh4)) - OPT_CFLAGS += $(filter-out -O%,$(DPKG_CFLAGS)) -Os - OPT_PIE_CFLAGS += $(filter-out -O%,$(DPKG_PIE_CFLAGS)) -Os -endif + ifneq (,$(filter $(DEB_HOST_ARCH), ppc64 ppc64el)) OPT_CFLAGS += -fexceptions OPT_PIE_CFLAGS += -fexceptions Thanks, Adrian > [1] https://buildd.debian.org/status/fetch.php?pkg=python3.13&arch=sh4&ver=3.13.0-2&stamp=1731428213&raw=0 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 --===============6727615884851191084== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gcc-sh4-cflags-313.diff" --- debian/rules.orig 2025-12-05 22:02:28.520256704 +0100 +++ debian/rules 2025-12-05 22:02:12.252160938 +0100 @@ -189,11 +189,7 @@ DPKG_CPPFLAGS += -DWITH_PYMALLOC_RADIX_TREE=0 DPKG_PIE_CPPFLAGS += -DWITH_PYMALLOC_RADIX_TREE=0 endif -# see https://gcc.gnu.org/PR81426 -ifneq (,$(filter $(DEB_HOST_ARCH), sh4)) - OPT_CFLAGS += $(filter-out -O%,$(DPKG_CFLAGS)) -Os - OPT_PIE_CFLAGS += $(filter-out -O%,$(DPKG_PIE_CFLAGS)) -Os -endif + ifneq (,$(filter $(DEB_HOST_ARCH), ppc64 ppc64el)) OPT_CFLAGS += -fexceptions OPT_PIE_CFLAGS += -fexceptions --===============6727615884851191084==--