Skip to content

Emit nounwind LLVM attribute with -C panic=abort #44992

Closed
@alexcrichton

Description

@alexcrichton

Currently whenever you compile with -C panic=abort we will omit invoke instructions and the uwtable LLVM function attribute, but we should also set the nounwind attribute. It looks like on ARM this forces the object file to not reference functions that otherwise a function missing the nounwind attribute will not have.

This should help out remove some weird hacks for embedded work!

cc @japaric

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions