Skip to content

[missed optimization] pushq/popq preamble with -fomit-frame-pointer if __builtin_frame_address is called #139806

Open
@chrooti

Description

@chrooti

Not much to add on the title. It seems that adding a call __builtin_frame_address inside a function also triggers the pushq/popq preamble even if -fomit-frame-pointer is passed, which means that pushq is pushing garbage values on the stack.

repro: https://godbolt.org/z/zsa5Mnsa9

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