Hi Adrian,

On Wed, 2024-11-20 at 11:48 +0200, Adrian Bunk wrote:
> This patch does several things:
> 
> 
> 1. Use EXTRA_OPT_CFLAGS again
> 
> It seems this broke in 3.12.2-5:
> https://salsa.debian.org/cpython-team/python3/-/commit/5e66301cb668a50e147e5a4c07e7ff69a2b6f58c
> 
> 
> 2. -fno-inline-small-functions was no longer passed on hppa/sh4
> 
> -fno-inline-small-functions was no longer passed on hppaSource: python3.13
> Version: 3.13.0-2
> Severity: important
> Tags: ftbfs patch
> X-Debbugs-Cc: debian-sup...@lists.debian.org, debian-h...@lists.debian.org
> 
> >  (porters CC'ed)
> and sh4 due to 1., and apparently noone noticed.
> 
> I'm removing it instead of re-adding it with the fix for 1.,
> please speak up if it is still desirable.
> 
> 
> 3. Workaround sh4 FTBFS with -Os
> 
> -fno-inline-small-functions or -O2 do not fix the build,
> -Os as workaround works for me.
> 
> 
> 4. noopt builds are again using -O0
> 
> noopt was broken by 1., fixed by this patch.
> 
> 
> 5. LTO builds are again using LTO
> 
> LTO was broken by 1., fixed by this patch.

Thanks for fixing this.

FWIW, using the LRA-enabled GCC from [1] allows me to build python3.13 on
sh4 without any additional patches. Unfortunately, those patches won't
make it for GCC 15 but are expected for GCC 16.

Adrian

> [1] https://github.com/olegendo/gcc/tree/devel/sh-lra

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to