From: Logan Gunthorpe Sent: November 8, 2018 at 5:14:58 PM GMT > To: Nadav Amit <[email protected]>, [email protected] <[email protected]>, Ingo > Molnar <[email protected]> > Cc: LKML <[email protected]>, X86 ML <[email protected]>, Sam > Ravnborg <[email protected]>, Michal Marek <[email protected]>, Thomas > Gleixner <[email protected]>, Linux Kbuild mailing list > <[email protected]>, Stephen Bates <[email protected]> > 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.

