Skip to content

Labels in asm! macros don't emit symbols #55529

@brian-armstrong

Description

@brian-armstrong

In the following inline assembly

asm!("movq $0, %rax
          movq $4, %rcx
          loop:
          addq $1, %rax
          cmpq %rax, %rcx
          ja loop" :::);

the label loop won't get a symbol in the output binary (with -g turned on). It feels like an appropriate symbol might be of the format module::struct::function::hash similar to other symbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inline-assemblyArea: Inline assembly (`asm!(…)`)requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions