-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Force code generation in assembly generation smoke-tests #135088
Conversation
In llvm/llvm-project@7b23f41 , `.text` started being suppressed from LLVM assembly in cases where it wasn't strictly necessary. Currently, the sample functions in these two tests are frequently decided to be IR-only functions, resulting in no code generation, so LLVM drops the `.text` directive. Adding `#[no_mangle]` forces these tests back to their original intent - assembly code is generated, and so a `.text` directive is generated as well.
Could not assign reviewer from: |
rustbot has assigned @Mark-Simulacrum. Use |
r? @durin42 |
I wonder if this isn't also fixed by |
I'm open to other fixes, this is just the lowest impact way I could think of to say "you need to actually put assembly in the assembly output". A |
ah true, I was mostly just wondering. |
@bors r+ rollup |
…kingjubilee Rollup of 6 pull requests Successful merges: - rust-lang#135046 (turn rustc_box into an intrinsic) - rust-lang#135061 (crashes: add latest batch of tests) - rust-lang#135070 (std: sync to dep versions of backtrace) - rust-lang#135088 (Force code generation in assembly generation smoke-tests) - rust-lang#135091 (Bump backtrace to 0.3.75) - rust-lang#135094 (bootstrap: If dir_is_empty fails, show the non-existent directory path) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#135088 - maurer:force-asm, r=nikic Force code generation in assembly generation smoke-tests In llvm/llvm-project@7b23f41 , `.text` started being suppressed from LLVM assembly in cases where it wasn't strictly necessary. Currently, the sample functions in these two tests are frequently decided to be IR-only functions, resulting in no code generation, so LLVM drops the `.text` directive. Adding `#[no_mangle]` forces these tests back to their original intent - assembly code is generated, and so a `.text` directive is generated as well. `@rustbot` label: +llvm-main r? `@workingjubilee` I'll attach a buildbot link once it finishes consuming this PR
In llvm/llvm-project@7b23f41 ,
.text
started being suppressed from LLVM assembly in cases where it wasn't strictly necessary. Currently, the sample functions in these two tests are frequently decided to be IR-only functions, resulting in no code generation, so LLVM drops the.text
directive.Adding
#[no_mangle]
forces these tests back to their original intent - assembly code is generated, and so a.text
directive is generated as well.@rustbot label: +llvm-main
r? @workingjubilee
I'll attach a buildbot link once it finishes consuming this PR