https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212

--- Comment #121 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to John Paul Adrian Glaubitz from comment #120)
> 
> That's a huge task which is why I prefer fixing issues on the fly.

I thought this is almost fully automated?

You can apply this patch to GCC to enable LRA by default for SH

--- sh.opt.orig 2019-03-04 10:09:09.244521000 +0900
+++ sh.opt      2020-02-26 10:19:55.414340269 +0900
@@ -299,5 +299,5 @@
 Enable the use of the fsrra instruction.

 mlra
-Target Report Var(sh_lra_flag) Init(0) Save
+Target Report Var(sh_lra_flag) Init(1) Save
 Use LRA instead of reload (transitional).

Then let it rebuild everything.


> 
> We are going to switch over anyway with GCC-12 or GCC-13, so I'm not sure
> what we are gaining if we continue to wait.

I don't get it.  You want to enable LRA by default for your distro, but you
don't want to rebuild all the packages with that modification?  It's like ..
shipping a distro with a new compiler, which potentially can't compile the
distro packages (correctly), so instead we secretly use an older compiler to
build the packages .... ?  Is that normal practice?  Sorry, sounds like a mess
to me.

Reply via email to