Skip to content

Conversation

@tambry
Copy link
Contributor

@tambry tambry commented Nov 6, 2025

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.

`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.
@tambry tambry self-assigned this Nov 6, 2025
@tambry tambry requested a review from JDevlieghere as a code owner November 6, 2025 13:11
@llvmbot llvmbot added the lldb label Nov 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 6, 2025

@llvm/pr-subscribers-lldb

Author: Raul Tambre (tambry)

Changes

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 --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(); } 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants