[compiler-rt] [asm][ie86-x86-64] Fix build error (PR #164532)
    Walter Lee via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 21 19:03:11 PDT 2025
    
    
  
https://github.com/googlewalt updated https://github.com/llvm/llvm-project/pull/164532
>From 42d617fea2a2125bf72fe7d2350ec6e1a18c32d6 Mon Sep 17 00:00:00 2001
From: Walter Lee <waltl at google.com>
Date: Tue, 21 Oct 2025 21:59:33 -0400
Subject: [PATCH 1/2] [asm][ie86-x86-64] Fix build error
Fixes #164453.
---
 compiler-rt/lib/builtins/assembly.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index 79a45d9143b40..e28fff716e296 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -337,7 +337,8 @@
 #endif
 #endif
 
-#if defined(__i386__) || defined(__amd64__)
+
+#if defined(__ASSEMBLER__) && (defined(__i386__) || defined(__amd64__))
 .att_syntax
 #endif
 
>From 62534d78af7715cff2582a27625a57666a38f744 Mon Sep 17 00:00:00 2001
From: Walter Lee <waltl at google.com>
Date: Tue, 21 Oct 2025 22:02:55 -0400
Subject: [PATCH 2/2] Remove spurious line
---
 compiler-rt/lib/builtins/assembly.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index e28fff716e296..d28f73f14b0cf 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -337,7 +337,6 @@
 #endif
 #endif
 
-
 #if defined(__ASSEMBLER__) && (defined(__i386__) || defined(__amd64__))
 .att_syntax
 #endif
    
    
More information about the llvm-commits
mailing list