[Lldb-commits] [lldb] [NFCI][lldb][test] Avoid unnecessary GNU extension for assembly call (PR #166769)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 6 05:12:30 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Raul Tambre (tambry)
<details>
<summary>Changes</summary>
`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.
---
Full diff: https://github.com/llvm/llvm-project/pull/166769.diff
1 Files Affected:
- (modified) lldb/test/Shell/Unwind/Inputs/call-asm.c (+1-2)
``````````diff
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(); }
``````````
</details>
https://github.com/llvm/llvm-project/pull/166769
More information about the lldb-commits
mailing list