You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
constants should be tagged with unnamed_addr to merge them #5613
LLVM only exposes setUnnamedAddr through the C++ API, sadly.
Marking constants this way allows LLVM to merge the representations, because it informs the compiler that the uniqueness of the address is unimportant.
If you absolutely must have a unique address, it should probably be expressed with an attribute.
Activity
bstrie commentedon May 28, 2013
Nominating for Maturity 5, Production Ready.
thestinger commentedon May 28, 2013
We probably can't really do this since the addresses are significant. I'll open more specific issues.
sanxiyn commentedon May 31, 2013
#6787 exposed unnamed_addr, which should help this issue.
alexcrichton commentedon Aug 9, 2013
I'm adding an attribute for doing this in #8421
Merge rust-lang#5613