[lkml]   [2018]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm
Sent: November 7, 2018 at 9:50:28 PM GMT
> To: Logan Gunthorpe <>, Nadav Amit <>, Ingo Molnar <>
> Cc: LKML <>, X86 ML <>, Sam Ravnborg <>, Michal Marek <>, Thomas Gleixner <>, Linux Kbuild mailing list <>, Stephen Bates <>
> Subject: Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm
> On November 7, 2018 1:43:39 PM PST, Logan Gunthorpe <> wrote:
>> On 2018-11-07 11:56 a.m., Nadav Amit wrote:
>>> HPA indicated more than once that this is wrong (and that was indeed
>> my
>>> initial solution), since it is not guaranteed that the compiler would
>> put
>>> the macro assembly before its use.
>> Hmm, that's very unfortunate. I don't really understand why the
>> compiler
>> would not put the macro assembly in the same order as it appears in the
>> code and it would be in the correct order there.
>> In any case, I've submitted a couple of issues to icecc[1] and
>> distcc[2]
>> to see if they have any ideas about supporting this on their sides.
>> Thanks,
>> Logan
>> [1];;sdata=dXKTR79LkFDQ9IXxYw9XYt0VPFa4MXrMUcc86w5uy%2Fk%3D&amp;reserved=0
>> [2];;sdata=XynZ1bFbKAb8V2eoPQbXudEJ%2B%2Bu8QA3mM4Sr4E%2FTzWs%3D&amp;reserved=0
> 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.

 \ /
  Last update: 2018-11-08 07:19    [W:0.127 / U:2.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site