Skip to content

Add vendor-specific suffixes to v0 mangling RFC 2603#3224

Merged
michaelwoerister merged 1 commit intorust-lang:masterfrom
lqd:rfc-2063-vendor-suffixes
Mar 22, 2022
Merged

Add vendor-specific suffixes to v0 mangling RFC 2603#3224
michaelwoerister merged 1 commit intorust-lang:masterfrom
lqd:rfc-2063-vendor-suffixes

Conversation

@lqd
Copy link
Member

@lqd lqd commented Jan 20, 2022

This PR updates v0 mangling to add an Itanium ABI-like vendor-specific suffix to symbols.

This already happens in practice (e.g. with LLVM LTO to ensure a name is globally unique) and the demanglers following the spec strictly can't handle these symbols. This PR makes them officially part of the spec.

The vendor-specific suffix is optional and doesn't change semantics: it is IMO safe to ignore in the vast majority of cases.

Improvements to the wording and description would be welcome. Opening the PR for possible discussion at today's t-compiler meeting, and possible FCP later.

cc @michaelwoerister

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This RFC is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this RFC. T-compiler Relevant to the compiler team, which will review and decide on the RFC. to-announce

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants