is clang9 supporting asm-goto?

Hi *,
I have read several news [1 2 3 ] about clang supporting asm-goto. is that for real? :slight_smile:
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

Hi *,
I have read several news [1 2 3 ] about clang supporting asm-goto. is that for real? :slight_smile:
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.

Hi Mark,

Thanks correct, my fault. just updated and rebuilt and now I can compile the kernel with clang.
good job!