Skip to content

__attribute__((naked)) should disable -finstrument-function* #62504

@pcc

Description

@pcc

The asm in a naked function may reasonably expect the argument registers to be live, however they may be clobbered by the instrumentation function called by -finstrument-function*. Therefore, we shouldn't insert calls to the instrumentation functions in naked functions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions