https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90441
--- Comment #19 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to krux from comment #18) > (In reply to Iain Sandoe from comment #14) > > current trunk (271111), manual regeneration of the > > firmware.elf.ltrans0.ltrans.o -> > > > > (it's kinda frustrating that one can't see the link line, more tweaks are > > still needed to help debug LTO > > Tell me about it. The first time I tried -save-temps I expected > firmware.elf.ltrans0.o to be compiled from firmware.elf.ltrans0.s of course. > But it's not, -v shows the .s file is compiled to > firmware.elf.ltrans0.ltrans.o and I still don't really know what the other > one is. > Some commandlines seem to be missing (and it's hard to find them in the > verbose output, maybe some color could help) in the verbose output and the > temporary files are gone already. That's been fixed for collect2, and I'm testing (right now) a patch to fix it for the linker plugin. For the record there's a somewhat magical incantation that should work even now: -Wl,-plugin-opt=-debug (but the patch under test is to enable -save-temps to do the Usual Thing).