Re: [PATCH] kbuild: simpler generation of constants for assembly

2016-06-10 Thread Alexey Dobriyan
On Fri, Jun 3, 2016 at 2:24 AM, Andrew Morton wrote: > On Sat, 21 May 2016 01:27:36 +0300 Alexey Dobriyan > wrote: > >> Instead of showing how cool sed(1) invocation could be, rely on the fact >> that gcc doesn't really look inside "asm" statement body and more or less >> directly emits it into

Re: [PATCH] kbuild: simpler generation of constants for assembly

2016-06-02 Thread Andrew Morton
On Sat, 21 May 2016 01:27:36 +0300 Alexey Dobriyan wrote: > Instead of showing how cool sed(1) invocation could be, rely on the fact > that gcc doesn't really look inside "asm" statement body and more or less > directly emits it into assembly. Pretend "#define" is an instruction. > > %a prints i

[PATCH] kbuild: simpler generation of constants for assembly

2016-05-20 Thread Alexey Dobriyan
Instead of showing how cool sed(1) invocation could be, rely on the fact that gcc doesn't really look inside "asm" statement body and more or less directly emits it into assembly. Pretend "#define" is an instruction. %a prints integer as plain integer without '$' or other characters. C++ comment t