Skip to content

-Og includes inlining optimizations harmful to debugging since 13.0 #64948

@jeremy-murphy

Description

@jeremy-murphy

Clang 13.0 started to inline functions at -Og, which my colleagues consider makes debugging near impossible.
See this Godbolt for a comparison of 12.0, 13.0 and GCC 13.2: https://godbolt.org/z/WWq75G353

The release notes for 13.0 don't mention anything that leaps out to me as an explanation.

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