Skip to content

alloc-variant-zeroed causing issues with LTO #145995

@clubby789

Description

@clubby789

I believe this causing https://crbug.com/441524277. In summary, the rust calloc function _RNvCsfo6nMSlQo1l_7___rustc19___rust_alloc_zeroed definition does not have the alloc-family attribute, but user modules of it have the alloc-family attribute on the calloc declaration. however, if ThinLTO decides to import the function, we lose the alloc-family attribute and the verifier complains 'alloc-variant-zeroed' must name a function belonging to the same 'alloc-family'.

Originally posted by @aeubanks in #144086 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-LTOArea: Link-time optimization (LTO)C-bugCategory: This is a bug.I-prioritizeIssue: Indicates that prioritization has been requested for this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions