On Wed, Nov 08, 2017 at 12:25:55PM +0300, Yury Norov wrote: > The patch below uses trick with undefining mrs_s/msr_s immediately > after use to solve the problem. It works for both gcc and clang.
Great, looks good to me! I tested the patch with LTO and clang's integrated assembler seems to be happy with it. > It has solved many problems you also try to solve, and some patches > are looking very similar. I haven't had a closer look at the gcc LTO patches yet, but I am definitely all for using common code where possible. Sami