[libcxx-commits] [libcxxabi] afc8368 - [libc++abi][libunwind] Enable AT&T syntax explicitly (#166818)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Nov 8 12:20:17 PST 2025


Author: Raul Tambre
Date: 2025-11-08T10:20:13-10:00
New Revision: afc83688cfadfb07c1cd9edc4f3c855d7cf4a261

URL: https://github.com/llvm/llvm-project/commit/afc83688cfadfb07c1cd9edc4f3c855d7cf4a261
DIFF: https://github.com/llvm/llvm-project/commit/afc83688cfadfb07c1cd9edc4f3c855d7cf4a261.diff

LOG: [libc++abi][libunwind] Enable AT&T syntax explicitly (#166818)

Implementation files using the Intel syntax typically explicitly specify
it. Do the same for the few files where applicable for AT&T.

This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's
Clang config files (i.e. a global preference for Intel syntax).

Added: 
    

Modified: 
    libcxxabi/test/native/x86_64/lpstart-zero.pass.sh.s
    libunwind/test/remember_state_leak.pass.sh.s

Removed: 
    


################################################################################
diff  --git a/libcxxabi/test/native/x86_64/lpstart-zero.pass.sh.s b/libcxxabi/test/native/x86_64/lpstart-zero.pass.sh.s
index e18134cf88639..7f1da22971223 100644
--- a/libcxxabi/test/native/x86_64/lpstart-zero.pass.sh.s
+++ b/libcxxabi/test/native/x86_64/lpstart-zero.pass.sh.s
@@ -23,6 +23,7 @@
 ## The exception table is modified to use udata4 encoding for LPStart and
 ## sdata4 encoding for call sites.
 
+	.att_syntax
 	.text
 	.globl	main                            # -- Begin function main
 	.p2align	4, 0x90

diff  --git a/libunwind/test/remember_state_leak.pass.sh.s b/libunwind/test/remember_state_leak.pass.sh.s
index 63beb7e4701ec..d3335cf82290b 100644
--- a/libunwind/test/remember_state_leak.pass.sh.s
+++ b/libunwind/test/remember_state_leak.pass.sh.s
@@ -38,6 +38,7 @@
 
     SIZEOF_UNWIND_EXCEPTION = 32
 
+    .att_syntax
     .text
 callback:
     xorl    %eax, %eax


        


More information about the libcxx-commits mailing list