Skip to content

s390x: Support preserve_frame_pointers flag#4477

Merged
fitzgen merged 1 commit intobytecodealliance:mainfrom
uweigand:s390x-backchain
Jul 21, 2022
Merged

s390x: Support preserve_frame_pointers flag#4477
fitzgen merged 1 commit intobytecodealliance:mainfrom
uweigand:s390x-backchain

Conversation

@uweigand
Copy link
Member

On s390x, we do not have a frame pointer that can be used to chain
stack frames for easy unwinding. Instead, our ABI defines a stack
"backchain" mechanism that can be used to the same effect.

This PR uses that backchain mechanism to implement the new
preserve_frame_pointers flags introduced here:
#4469

FYI @fitzgen @cfallin

@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Jul 20, 2022
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Mind adding a filetest that does set preserver_frame_pointers = true similar to how my PR introducing the new flag did for aarch64 and x64?

On s390x, we do not have a frame pointer that can be used to chain
stack frames for easy unwinding.  Instead, our ABI defines a stack
"backchain" mechanism that can be used to the same effect.

This PR uses that backchain mechanism to implement the new
preserve_frame_pointers flags introduced here:
bytecodealliance#4469
@uweigand
Copy link
Member Author

LGTM, thanks! Mind adding a filetest that does set preserver_frame_pointers = true similar to how my PR introducing the new flag did for aarch64 and x64?

Oops, I had those, just forgot "git add" :-)

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

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants