[PATCH v3] kbuild: simpler generation of assembly constants

2016-07-13 Thread Alexey Dobriyan
gcc doesn't really look inside "asm" statements and more or less directly emits it into assembly. So pretend "#define" is CPU instruction. C++ comment can't be used because sparc assembler doesn't understand it. Signed-off-by: Alexey Dobriyan --- This one compiles

[PATCH v3] kbuild: simpler generation of assembly constants

2016-07-13 Thread Alexey Dobriyan
gcc doesn't really look inside "asm" statements and more or less directly emits it into assembly. So pretend "#define" is CPU instruction. C++ comment can't be used because sparc assembler doesn't understand it. Signed-off-by: Alexey Dobriyan --- This one compiles on Sparc and UML.