On Thu, Oct 01, 2015 at 12:18:08PM -0500, Segher Boessenkool wrote: > On Thu, Oct 01, 2015 at 12:14:44PM +0200, Richard Biener wrote: > > So even if not "easy", can you try? > > I did, and after half a day had a big mess and lots of things failing, > no idea where this was headed, and in the meantime bootstrap still fails > (on affected targets).
I had a look too, and while you can revise the load_toc_v4_PIC patterns to use labels emitted the usual way (eg. as in i386.c:ix86_init_large_pic_reg) they tend to wander away from the insn. I think that could be solved, but these labels which aren't referred to by jump insns get converted to NOTE_INSN_DELETED_LABEL somewhere, and that leads to further pain. -- Alan Modra Australia Development Lab, IBM