<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 26, 2019, 9:57 PM Will Lester via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Sep 27, 2019 at 4:02 AM Tim Northover <<a href="mailto:t.p.northover@gmail.com" target="_blank" rel="noreferrer">t.p.northover@gmail.com</a>> wrote:<br><br>
> > This error said "invalid operand for inline asm constraint 'i'" in<br>
> > arch/x86/include/asm/jump_table.h.<br>
><br>
> This is a pretty fragile use of that constraint, since it's declaring<br>
> that something must be a constant when that can only happen via<br>
> optimizations. I'm not convinced that's what's going on here though.<br>
> Kernels aren't usually compiled at -O0 and I think I trust the Linux<br>
> developers to make sure users are passing an obvious constant.<br>
><br>
<br>
I am doing an analysis of kernel, therefore I use -O0 to keep details of<br>
source code.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This is not expected to work, and does not. The kernel can only be compiled with optimizations on. That's not a clang bug -- that's just how the kernel has been written, unfortunately.</div><div dir="auto"><br></div><div dir="auto"><br></div></div>