]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Emit an error message on unsupported llvm_asm
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 11 Aug 2025 14:52:32 +0000 (16:52 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:37 +0000 (20:58 +0100)
commitaaa25fdc8c3036b3ed58d0fde50143bb516ba9f5
tree74f0ea79220fc4841c7479fc7db1a9ad6e0df946
parent0137edd2597d6d76ea9e901d3a6d81744f6cf9eb
gccrs: Emit an error message on unsupported llvm_asm

llvm_asm was never meant to be completely supported since it has been
replaced with the asm macro but we still need it to compile some parts
of libcore, previously the compiler was aborting when an unsupported
llvm_asm construct was found.

gcc/rust/ChangeLog:

* ast/rust-expr.h: Add const getters to llvm members.
* hir/rust-ast-lower-expr.cc (check_llvm_asm_support): Check llvm_asm
usage validity.
(ASTLoweringExpr::visit): Emit an error message instead of aborting.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-expr.h
gcc/rust/hir/rust-ast-lower-expr.cc