Skip to content

IRGen: COMDAT the force load thunks #21533

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

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

compnerd
Copy link
Member

Use ApplyIRLinkage to the force load thunks to permit multiple
emissions to be COMDATed on Windows. The multi-module tests would emit
the symbols multiply and would fail to link.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a99f3eb2b3a1243c8b6354d15cb1a57d28438421

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a99f3eb2b3a1243c8b6354d15cb1a57d28438421

Use `ApplyIRLinkage` to the force load thunks to permit multiple
emissions to be COMDATed on Windows.  The multi-module tests would emit
the symbols multiply and would fail to link.
@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e277954ac78d4a35bd8abf2f5cf5cafb1848b82d

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - e277954ac78d4a35bd8abf2f5cf5cafb1848b82d

@compnerd
Copy link
Member Author

CC: @rjmccall @aschwaighofer

@compnerd
Copy link
Member Author

compnerd commented Jan 3, 2019

The only difference this causes is that we now go from weak to weak_odr. Technically, this is more correct as we only need a single definition not each one to be preserved.

@compnerd compnerd merged commit c932f60 into swiftlang:master Jan 3, 2019
@compnerd compnerd deleted the excessive-force branch January 3, 2019 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants