From: Logan Gunthorpe Sent: November 8, 2018 at 5:14:58 PM GMT > To: Nadav Amit <na...@vmware.com>, h...@zytor.com <h...@zytor.com>, Ingo > Molnar <mi...@redhat.com> > Cc: LKML <linux-kernel@vger.kernel.org>, X86 ML <x...@kernel.org>, Sam > Ravnborg <s...@ravnborg.org>, Michal Marek <michal.l...@markovi.net>, Thomas > Gleixner <t...@linutronix.de>, Linux Kbuild mailing list > <linux-kbu...@vger.kernel.org>, Stephen Bates <sba...@raithlin.com> > Subject: Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline > asm > > > > > On 2018-11-07 11:18 p.m., Nadav Amit wrote: >>> Apparently gcc will treat them like basic blocks and possibly move them >>> around. >> >> Maybe it is possible to break the compilation of each object into two >> stages: first, compile the source without assembly, and then take the >> generated .s file and assemble it with the .s file of the macros. >> >> Does it sounds as something that may work? I guess it should only be done >> when distcc is used. > > In theory it would at least allow the compile step to be distributed, > the assembly step would still have to be done locally... It'd be better > than nothing, I guess.
I don’t think the assembly stage needs to be done locally. gcc can still be used to deploy the assembler. I am not too familiar with distcc, so I don’t know whether the preprocessing supports multiple source-files, and whether it has some strange-behavior when it comes to .S/.s files. Well, I’ll give it a try.