https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104117
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- .. not (In reply to Iain Sandoe from comment #5) > (In reply to Richard Biener from comment #4) not enough coffee before posting ... [this problem comes into play when we use force_const_mem() on an operand, and then process_address() on that - but disentangling what exactly is happening will take some more time]. ( I am not familiar with using the RTL FE so that is something that will also take some time ) > I had a quick look yesterday and it seems that there might be a bug in the > target address legaliser in this case [it is being called]. > > (there is another extremely similar problem, where the legaliser is never > called, but I was jumping to conclusions that it was the same one too soon) It seems that both of these are actually in play (it is not sufficient just to fix the legaliser)