Skip to content
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

Remove naked_functions feature usage for x86 #722

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

nbdd0121
Copy link
Contributor

@nbdd0121 nbdd0121 commented Jul 4, 2023

Given that this function has no generics, it could easily use global_asm! instead.

@nbdd0121
Copy link
Contributor Author

nbdd0121 commented Jul 4, 2023

I haven't been able to reproduce the CI issue locally. Probably need to steal the version out from CI to figure out what happened.

Copy link
Member

@sunfishcode sunfishcode left a comment

Choose a reason for hiding this comment

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

Thanks! Using global_asm is much nicer than shipping a prebuilt archive.

The CI failure turned out to be an existing bug, which is now fixed in #723.

src/backend/linux_raw/vdso_wrappers.rs Show resolved Hide resolved
Given that this function has no generics, it could easily use `global_asm!`
instead.
@sunfishcode sunfishcode merged commit bb65f7f into bytecodealliance:main Jul 5, 2023
53 checks passed
@sunfishcode
Copy link
Member

Thanks!

sunfishcode added a commit that referenced this pull request Jul 6, 2023
rustix 0.38 removed for most of the out-of-line asm libraries, and #722
removed the out-of-line libraries for 32-bit x86. This PR removes the
libraries for mips and power, which will now default to the libc
backend, though the linux_raw backend can still be enabled using
`RUSTFLAGS=--cfg=rustix_use_experimental_asm`.

Closes #720.
sunfishcode added a commit that referenced this pull request Jul 6, 2023
rustix 0.38 removed for most of the out-of-line asm libraries, and #722
removed the out-of-line libraries for 32-bit x86. This PR removes the
libraries for mips and power, which will now default to the libc
backend, though the linux_raw backend can still be enabled using
`RUSTFLAGS=--cfg=rustix_use_experimental_asm`.

Closes #720.
sunfishcode added a commit that referenced this pull request Jul 6, 2023
rustix 0.38 removed for most of the out-of-line asm libraries, and #722
removed the out-of-line libraries for 32-bit x86. This PR removes the
libraries for mips and power, which will now default to the libc
backend, though the linux_raw backend can still be enabled using
`RUSTFLAGS=--cfg=rustix_use_experimental_asm`.

Closes #720.
sunfishcode pushed a commit that referenced this pull request Oct 13, 2024
Given that this function has no generics, it could easily use `global_asm!`
instead.

This is a backport of #722, except without the part that removes
outline asm for x86, as that's still needed on the 0.37 branch. It
fixes compilation errors on the 0.37 when compiled with the latest
nightly, due to `asm!` in `#[naked]` functions needed to be change
to `naked_asm!`.

Fixes #1181.
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