Skip to content

Prevent Clang/LLVM from inlining or removing MPIR_Breakpoint as dead function #4624

Closed
@kiranchandramohan

Description

@kiranchandramohan

Many parallel debuggers depend on the MPIR_Breakpoint function. Clang/LLVM can inline or remove MPIR_Breakpoint as dead function. Can the optnone attribute be added to the MPIR_Breakpoint function to prevent it from being optimized away ?

file : orte/orted/orted_submit.c

#ifdef __clang__
__attribute__((optnone))
#endif
ORTE_DECLSPEC void* MPIR_Breakpoint(void);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions