Skip to content

Assembler output when using -Z asm-comments emits long sequences of empty lines (hundreds to thousands) #20324

@sivadeilra

Description

@sivadeilra

Run rustc -Z asm-comments --emit asm ..., and look at the generated assembly code. It will often have very long sequences of empty lines, or lots of blocks like this:

    #NO_APP
    #APP

    #NO_APP
    #APP

    #NO_APP
    #APP

    #NO_APP
    #APP

    #NO_APP
    #APP

    #NO_APP
    #APP

    #NO_APP
    #APP

It would be best to collapse all contiguous blank lines into a single blank line, and to drop back-to-back #NO_APP / #APP markers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions