Disables frame pointers for sgx target #121637
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes an sgx-related test failure intorduced by PR https://github.com/rust-lang/rust/pull/121203`. The frame pointer feature from the PR in question adds unexpected assembly instructions for a function
unw_getcontext
which is checked in testrust/tests/run-make/x86_64-fortanix-unknown-sgx-lvi
.The test failure looks like this:
Command used to build the compiler and run the tests looks like this
Test is fixed by not setting the compiler flag
-Cforce-frame-pointers=true
if the host target isx86_64-fortanix-unknown-sgx