-
Notifications
You must be signed in to change notification settings - Fork 106
support -Zmin-function-alignment
#1572
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
The Cranelift PR got merged after the current release branched. It will be in the next Cranelift release, which will be released somewhere ij the next couple of days. There is a release every month and two weeks before the release, a new branch is created for it to let the changes bake a bit and have bugfixes backported without introducing new regressions. |
Ah, well the next release should be soon then. But also, that this passed CI means that the logic never actually gets hit right? So the relevant tests are ignored by something in |
The only tests for this are codegen tests, which don't get run by test_rustc_tests.sh as |
The master branch is now updated to the new Cranelift release. |
35dba80
to
342a75e
Compare
I've rebased, with that:
|
That can't be implemented yet until cranelift-module supports specifying a TargetIsa for individual function.
If you have locally checked that it sets the correct alignment in the function sections, that is enough as far as I'm concerned. |
I ran this, so I think we're good
|
fixes #1555
Based on the timing, this should be supported now
I strongly suspect that no tests will hit this though (though I don't see how the relevant tests are ignored in
scripts/test_rustc_tests.sh
). As far as I can tell, function alignment with#[repr(align(N))]
is not yet supported. I vaguely rember we discussed how this could be added, but now I can't find a way in the cranelift docs to align an individual function.