Source: gcc-snapshot
Version: 1:20260705-1
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: m68k

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

> [1] 
> https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d9d70a5fbbe25ddbed66c05b9ec04fe97a23059f

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
From: John Paul Adrian Glaubitz <[email protected]>
Date: Wed, 25 Feb 2026 19:55:38 +0100
Subject: [PATCH] m68k: Enable LRA by default

---
 gcc/config/m68k/m68k.opt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gcc/config/m68k/m68k.opt b/src/gcc/config/m68k/m68k.opt
index 7558ce1b9c7..a3467664a12 100644
--- a/src/gcc/config/m68k/m68k.opt
+++ b/src/gcc/config/m68k/m68k.opt
@@ -147,7 +147,7 @@ Target RejectNegative Mask(LONG_JUMP_TABLE_OFFSETS)
 Use 32-bit offsets in jump tables rather than 16-bit offsets.
 
 mlra
-Target Var(m68k_lra_p) Undocumented
+Target Var(m68k_lra_p) Init(1) Save
 Use LRA for reload instead of the old reload framework.  This option is
 experimental, and it may be removed in future versions of the compiler.
 
-- 
2.53.0

Reply via email to