Hello, On Mon, 26 Aug 2024, Paul Koning wrote:
> >>> Yeah, I wondered as well. For things to go wrong some instructions that > >>> contain pre/post-inc/dec of the stack pointer need to have reloads in > >>> such > >>> a way that the actual SP-change sideeffect moves to a different > >>> instruction. > >> > >> I think I've seen that in the past on PDP11, and reported it, but I > >> thought that particular issue was fixed not too long after. > > > > Do you have a reference handy? I'd like to take a look, if for nothing > > else than curiosity ;-) > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87944 > <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87944> which says it was fixed > in GCC 14 on 5/30/2023. Ah, yes, thanks. The referenced patch there changed stuff at the caller of setup_sp_offset for the before sequence only and left the after sequence alone. I think it worked for your case only because it was a single reload and it was in front of the insn. Ciao, Michael.