Hi *, I have read several news [1 2 3 ] about clang supporting asm-goto. is that for real? :) so I tried to compile the Linux Kernel (master branch) with clang built from source, the actual version im using is the following: """ clang version 9.0.0 (https://github.com/llvm/llvm-project.git f8ffb926e206982c57d862d12fe0004a135e014c) """ but I still get "compiler lacks asm-goto support". what am I doing wrong? Thanks, best. [1] https://fosdem.org/2019/schedule/event/llvm_kernel/attachments/slides/3330/export/events/attachments/llvm_kernel/slides/3330/clang_linux_fosdem_19.pdf [2] https://www.phoronix.com/scan.php?page=news_item&px=LLVM-Asm-Goto-Merged [3] https://reviews.llvm.org/D56571 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190607/ec3bbd65/attachment-0001.html>
Shawn Landden via llvm-dev
2019-Jun-07 16:24 UTC
[llvm-dev] is clang9 supporting asm-goto?
On Fri, Jun 7, 2019 at 10:23 AM Mark Vegans via llvm-dev <llvm-dev at lists.llvm.org> wrote:> > Hi *, > I have read several news [1 2 3 ] about clang supporting asm-goto. is that for real? :) > so I tried to compile the Linux Kernel (master branch) with clang built from source, the actual version im using is the following: > > """ > clang version 9.0.0 (https://github.com/llvm/llvm-project.git f8ffb926e206982c57d862d12fe0004a135e014c) > """ > > but I still get "compiler lacks asm-goto support". > what am I doing wrong?see ./scripts/gcc-goto.sh WIth clang-9 I get: $ ./scripts/gcc-goto.sh clang-9 <stdin>:13:6: error: 'asm goto' constructs are not supported yet asm goto ("" :::: entry); ^ 1 error generated.> > Thanks, > best. > > > [1] https://fosdem.org/2019/schedule/event/llvm_kernel/attachments/slides/3330/export/events/attachments/llvm_kernel/slides/3330/clang_linux_fosdem_19.pdf > [2] https://www.phoronix.com/scan.php?page=news_item&px=LLVM-Asm-Goto-Merged > [3] https://reviews.llvm.org/D56571 > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Tim Northover via llvm-dev
2019-Jun-07 17:07 UTC
[llvm-dev] is clang9 supporting asm-goto?
Hi Mark, On Fri, 7 Jun 2019 at 08:23, Mark Vegans via llvm-dev <llvm-dev at lists.llvm.org> wrote:> clang version 9.0.0 (https://github.com/llvm/llvm-project.git f8ffb926e206982c57d862d12fe0004a135e014c)Final support seems to have been committed on 3rd June (after being reverted for a bit), and that commit is from 29th May so I think you just need to update to an even newer Clang. Cheers. Tim.
Thanks correct, my fault. just updated and rebuilt and now I can compile the kernel with clang. good job! On Fri, Jun 7, 2019 at 7:07 PM Tim Northover <t.p.northover at gmail.com> wrote:> Hi Mark, > > On Fri, 7 Jun 2019 at 08:23, Mark Vegans via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > clang version 9.0.0 (https://github.com/llvm/llvm-project.git > f8ffb926e206982c57d862d12fe0004a135e014c) > > Final support seems to have been committed on 3rd June (after being > reverted for a bit), and that commit is from 29th May so I think you > just need to update to an even newer Clang. > > Cheers. > > Tim. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190607/29851c87/attachment.html>