]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Set the default ABI to C for extern blocks and extern functions
authorNobel Singh <nobel2073@gmail.com>
Fri, 19 Jan 2024 15:06:34 +0000 (20:51 +0545)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 7 Feb 2024 11:40:22 +0000 (12:40 +0100)
commit60f8171f5c8c7eec6c3441f735735f31cea2e1d1
treea13cd41b0277ff34390cf40611b700a000b072c2
parent99fccb3eee81b3593bc5e538b4ba17dff6724c05
gccrs: Set the default ABI to C for extern blocks and extern functions

Previously, the default ABI was set to Rust, which is not correct for
extern blocks and extern functions. This patch changes the default
ABI to C for these cases.

gcc/rust/ChangeLog:

* hir/rust-ast-lower-base.cc (ASTLoweringBase::lower_qualifiers):
Change default ABI to C for extern functions
(ASTLoweringBase::lower_extern_block): Likewise

Signed-off-by: Nobel Singh <nobel2073@gmail.com>
gcc/rust/hir/rust-ast-lower-base.cc