[Lldb-commits] [lldb] 3aa7a24 - [NFCI][lldb][test] Avoid unnecessary GNU extension for assembly call (#166769)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 6 23:24:00 PST 2025
Author: Raul Tambre
Date: 2025-11-07T09:23:55+02:00
New Revision: 3aa7a2426357a523d2ee12bd2b2406e45d058eac
URL: https://github.com/llvm/llvm-project/commit/3aa7a2426357a523d2ee12bd2b2406e45d058eac
DIFF: https://github.com/llvm/llvm-project/commit/3aa7a2426357a523d2ee12bd2b2406e45d058eac.diff
LOG: [NFCI][lldb][test] Avoid unnecessary GNU extension for assembly call (#166769)
`asm()` on function declarations is used for specifying the mangling. But it's a GNU extension and
very much unnecessary here since the name matches.
Fixes compiling if the compiler defaults to non-extensions mode.
Added:
Modified:
lldb/test/Shell/Unwind/Inputs/call-asm.c
Removed:
################################################################################
diff --git a/lldb/test/Shell/Unwind/Inputs/call-asm.c b/lldb/test/Shell/Unwind/Inputs/call-asm.c
index b154c1ac1385d..30d0069504172 100644
--- a/lldb/test/Shell/Unwind/Inputs/call-asm.c
+++ b/lldb/test/Shell/Unwind/Inputs/call-asm.c
@@ -1,3 +1,2 @@
-int asm_main() asm("asm_main");
-
+int asm_main();
int main() { return asm_main(); }
More information about the lldb-commits
mailing list