[Bug target/83464] [SH] ICE: in final_scan_insn, at final.c:3025 with -mlra

olegendo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 15 09:19:00 GMT 2019


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

--- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to John Paul Adrian Glaubitz from comment #4)
> 
> I have to try. I'll run a testbuild. Currently the package has the following
> workaround for PR/81426:
> 
> # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81426
> ifneq (,$(filter $(DEB_HOST_ARCH_CPU),sh3 sh4))
> 	export DEB_CXXFLAGS_MAINT_STRIP += -O2
> 	export DEB_CXXFLAGS_MAINT_APPEND += -O1
> endif
> 

I'm not sure this is an acceptable solution.  It disables various other
optimizations and reduces in worse code than normally should be.  When you
rebuild all of debian with LRA enabled, please make sure to take out any such
hacks.


More information about the Gcc-bugs mailing list