#1142039 gcc-snapshot: Please add patch to enable LRA by default on m68k

Package:
src:gcc-snapshot
Source:
src:gcc-snapshot
Submitter:
John Paul Adrian Glaubitz
Date:
2026-08-05 09:19:02 UTC
Severity:
normal
Tags:
#1142039#5
Date:
2026-07-14 07:42:05 UTC
From:
To:
Hi,

after one of the last show stoppers for switching the m68k backend to the new
LRA register allocator was resolved yesterday [1], I think we should finally
take the leap now and enable LRA on m68k.

The attached patch does exactly that and applies against the gcc-snapshot
package cleanly.

Can you please include it for the next gcc-snapshot upload?

Thanks,
Adrian

#1142039#10
Date:
2026-08-04 22:58:45 UTC
From:
To:
Apparently this was applied against gcc-16:

https://tracker.debian.org/news/1776755/accepted-gcc-16-1610-3-source-into-unstable/
   * Enable LRA by default on m68k for snapshot builds (Adrian Glaubitz).
     Addresses: #1142039.

https://buildd.debian.org/status/fetch.php?pkg=gcc-16&arch=m68k&ver=16.1.0-3&stamp=1785220565&raw=0
  Applying patch m68k-lra-enable.diff
  patching file src/gcc/config/m68k/m68k.opt

I suspect this might be the reason why gcc-16 16.1.0-3 started to FTBFS
on m68k.

cu
Adrian

#1142039#15
Date:
2026-08-05 09:18:07 UTC
From:
To:
Hi Adrian,

Yes, LRA doesn't work for gcc-16 on m68k. It should be enabled for gcc-17 only.

Adrian