From: Debian Rust Maintainers Date: Fri, 28 Jul 2023 11:44:06 +0000 (+0100) Subject: ubuntu-disable-ppc64el-asm-tests X-Git-Tag: archive/raspbian/1.63.0+dfsg1-2_deb11u1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=09a0cc8b349195935c2257a42d342e3df2d15698;p=rustc-mozilla.git ubuntu-disable-ppc64el-asm-tests Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch --- diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 8266f1566..bc114ab2d 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -3112,6 +3112,10 @@ declare_lint! { /// ### Example /// /// ```rust,compile_fail + /// #![cfg_attr( + /// not(any(target_arch = "powerpc64", target_arch = "s390x")), + /// feature(asm_experimental_arch) + /// )] /// use std::arch::asm; /// /// fn main() { diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index b1bfd612b..d8bca0312 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2881,11 +2881,13 @@ declare_lint! { /// /// use std::arch::asm; /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub fn default_abi() -> u32 { /// unsafe { asm!("", options(noreturn)); } /// } /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub extern "Rust" fn rust_abi() -> u32 { /// unsafe { asm!("", options(noreturn)); } diff --git a/src/test/run-make-fulldeps/intrinsic-unreachable/Makefile b/src/test/run-make-fulldeps/intrinsic-unreachable/Makefile index 203772856..bcf9c075a 100644 --- a/src/test/run-make-fulldeps/intrinsic-unreachable/Makefile +++ b/src/test/run-make-fulldeps/intrinsic-unreachable/Makefile @@ -1,6 +1,7 @@ -include ../tools.mk # ignore-windows-msvc +# needs-asm-support # # Because of Windows exception handling, the code is not necessarily any shorter. # https://github.com/llvm-mirror/llvm/commit/64b2297786f7fd6f5fa24cdd4db0298fbf211466