Skip to content

rust could use linkonce_odr instead of internal on instantiations of generic functions #5490

Closed

Description

@thestinger

This is how clang tells LLVM to merge C++ template instantiations. It's somewhat complicated for C++ as shown by their IR output tests but Rust might just need linkonce_odr without the exceptions.

It's possible this isn't actually useful because of the compilation model of crates though. @pcwalton: any idea if this would have any meaning in Rust's world?

Activity

  1. thestinger commented on Mar 29, 2013

    @thestinger
    ContributorAuthor

    Closing for now, I don't think this applies to Rust's crate model.

  2. added a commit that references this issue on May 2, 2020
  3. added a commit that references this issue on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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