Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-3930] Compact Mangling: Investigate not distinguishing between struct/enum #46515

Closed
ematejska mannequin opened this issue Feb 11, 2017 · 2 comments
Closed

[SR-3930] Compact Mangling: Investigate not distinguishing between struct/enum #46515

ematejska mannequin opened this issue Feb 11, 2017 · 2 comments
Labels
affects ABI Flag: Affects ABI bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself

Comments

@ematejska
Copy link
Mannequin

ematejska mannequin commented Feb 11, 2017

Previous ID SR-3930
Radar rdar://problem/31411213
Original Reporter @ematejska
Type Bug
Status Resolved
Resolution Won't Do
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, AffectsABI
Assignee None
Priority Medium

md5: 1c4a5caffad9c7e36a34bcbc2f7e6f5f

Issue Description:

Ahead of ABI stability, investigate not distinguishing between struct/enum in mangling structures. This would produce a more compact mangling.

@bob-wilson
Copy link
Contributor

@swift-ci create

@bob-wilson
Copy link
Contributor

We're not planning to do this.

Some comments from Erik Eckstein:

"This would be surprisingly complicated to implement - for a non-obvious reason: We use the old re-mangler to generated backward compatible ObjC runtime names. If we don’t have the enum vs. struct info in the mangling tree we couldn’t do this anymore. Instead we would have to reactivate the old mangler or do something very hacky. This would just be terrible....

This would not produce a more compact mangling, because we still would need one character to represent a nominal type (either sturct or enum). It would just free one character from the mangling operator namespace."

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects ABI Flag: Affects ABI bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself
Projects
None yet
Development

No branches or pull requests

1 participant