Skip to content

Use index [4] instead of [3] to save MXCSR in case cf-protection is enabled#70

Merged
neboat merged 1 commit intoOpenCilk:devfrom
VoxSciurorum:jfc/cf
Feb 20, 2026
Merged

Use index [4] instead of [3] to save MXCSR in case cf-protection is enabled#70
neboat merged 1 commit intoOpenCilk:devfrom
VoxSciurorum:jfc/cf

Conversation

@VoxSciurorum
Copy link
Contributor

On x86 (at least) cf-protection causes builtin_setjmp to save the shadow stack pointer in index 3 of the five word buffer. Move the saved MXCSR to index 4.

@neboat neboat merged commit 5c54b07 into OpenCilk:dev Feb 20, 2026
3 checks passed
@VoxSciurorum VoxSciurorum deleted the jfc/cf branch February 20, 2026 16:08
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