Skip to content

5.5 fix weak extended frame pointer flags #40044

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

Conversation

etcwilde
Copy link
Member

@etcwilde etcwilde commented Nov 3, 2021

Cherry-pick of: #40035

The weakly-imported symbol was getting optimized out, then put back in
as a strongly-imported symbol. This is no good. The symbol is a
declaration though, so it can't be "used" directly. Instead, we assign
it to another global and "use" it. That avoids the optimizations and
should be fine. Even if that symbol is a nullptr because it doesn't
exist, we are taking the pointer to it, which should be fine for all
situations.

Fixes rdar://84877644.

@etcwilde etcwilde added the r5.5 label Nov 3, 2021
@etcwilde etcwilde changed the title Ewilde/5.5/fix weak extended frame pointer flags 5.5 fix weak extended frame pointer flags Nov 3, 2021
The weakly-imported symbol was getting optimized out, then put back in
as a strongly-imported symbol. This is no good. The symbol is a
declaration though, so it can't be "used" directly. Instead, we assign
it to another global and "use" it. That avoids the optimizations and
should be fine. Even if that symbol is a nullptr because it doesn't
exist, we are taking the pointer to it, which should be fine for all
situations.
Make the little variable LinkOnceODRLinkage so that it doesn't take up
as much space.
@etcwilde etcwilde force-pushed the ewilde/5.5/fix-weak-extendedFramePointerFlags branch from 0865ced to ffcbdc6 Compare November 4, 2021 17:03
@etcwilde
Copy link
Member Author

etcwilde commented Nov 4, 2021

@swift-ci please test

@etcwilde etcwilde marked this pull request as ready for review November 4, 2021 17:47
@etcwilde etcwilde requested a review from a team as a code owner November 4, 2021 17:47
@swift-ci
Copy link
Contributor

swift-ci commented Nov 4, 2021

Build failed
Swift Test OS X Platform
Git Sha - ffcbdc6

@etcwilde
Copy link
Member Author

etcwilde commented Nov 4, 2021

@swift-ci please test macOS

@swift-ci
Copy link
Contributor

swift-ci commented Nov 5, 2021

Build failed
Swift Test OS X Platform
Git Sha - ffcbdc6

@DougGregor
Copy link
Member

@swift-ci please test macOS

@swift-ci
Copy link
Contributor

swift-ci commented Nov 5, 2021

Build failed
Swift Test OS X Platform
Git Sha - ffcbdc6

@etcwilde
Copy link
Member Author

etcwilde commented Nov 6, 2021

swiftlang/llvm-project#3511

@swift-ci please test macOS

@swift-ci
Copy link
Contributor

swift-ci commented Nov 6, 2021

Build failed
Swift Test OS X Platform
Git Sha - ffcbdc6

@etcwilde
Copy link
Member Author

etcwilde commented Nov 9, 2021

swiftlang/llvm-project#3519

@swift-ci please test macOS platform

@swift-ci
Copy link
Contributor

swift-ci commented Nov 9, 2021

Build failed
Swift Test OS X Platform
Git Sha - ffcbdc6

@etcwilde
Copy link
Member Author

@swift-ci please test macOS

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - ffcbdc6

@etcwilde
Copy link
Member Author

MacOS failure is unrelated:

'swift-format' /Users/buildnode/jenkins/workspace/swift-PR-macos/branch-release/5.5/swift-format: error: product 'TSCBasic' required by package 'swift-format' target 'swift-format' not found.
FAIL: Building SwiftSyntax failed

@shahmishal
Copy link
Member

MacOS failure is unrelated:

'swift-format' /Users/buildnode/jenkins/workspace/swift-PR-macos/branch-release/5.5/swift-format: error: product 'TSCBasic' required by package 'swift-format' target 'swift-format' not found.
FAIL: Building SwiftSyntax failed

This PR should fix the issue:
#40123

@shahmishal
Copy link
Member

@swift-ci please test macOS

@etcwilde
Copy link
Member Author

Thank you!

@DougGregor DougGregor merged commit e6979d2 into swiftlang:release/5.5 Jan 11, 2022
@etcwilde etcwilde deleted the ewilde/5.5/fix-weak-extendedFramePointerFlags branch January 11, 2022 18:22
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants