From 68df0eb8178799c4b032d3c375528918412cd4e5 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Sat, 10 Apr 2021 19:13:02 +0100 Subject: [PATCH] Mark global_asm! code with .att_syntax global_asm! will soon change to use Intel syntax by default. --- library/compiler-builtins/src/probestack.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/compiler-builtins/src/probestack.rs b/library/compiler-builtins/src/probestack.rs index ac3ae1ebbc4a..6892ab2d3eaa 100644 --- a/library/compiler-builtins/src/probestack.rs +++ b/library/compiler-builtins/src/probestack.rs @@ -48,6 +48,8 @@ #![cfg(not(feature = "no-asm"))] // We only define stack probing for these architectures today. #![cfg(any(target_arch = "x86_64", target_arch = "x86"))] +// We need to add .att_syntax for bootstraping the new global_asm! +#![allow(unknown_lints, bad_asm_style)] extern "C" { pub fn __rust_probestack(); @@ -63,6 +65,7 @@ macro_rules! define_rust_probestack { ($body: expr) => { concat!( " + .att_syntax .pushsection .text.__rust_probestack .globl __rust_probestack .type __rust_probestack, @function