forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#134931 - matthiaskrgr:rollup-b47ly73, r=matth…
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#132477 (Add illumos target documentation) - rust-lang#134871 (Add codegen test for issue 63646) - rust-lang#134911 (chore: fix typos) - rust-lang#134922 (Fix typos) - rust-lang#134924 (ci: Cleanup docker build logs in CI) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
17 changed files
with
90 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# `aarch64-unknown-illumos` and `x86_64-unknown-illumos` | ||
|
||
**Tier: 2/3** | ||
|
||
[illumos](https://www.illumos.org/), is a Unix operating system which provides next-generation features for downstream distributions, | ||
including advanced system debugging, next generation filesystem, networking, and virtualization options. | ||
|
||
## Target maintainers | ||
|
||
- Joshua M. Clulow ([@jclulow](https://github.com/jclulow)) | ||
- Patrick Mooney ([@pfmooney](https://github.com/pfmooney)) | ||
|
||
## Requirements | ||
|
||
The target supports host tools. | ||
|
||
The illumos target supports `std` and uses the standard ELF file format. | ||
|
||
`x86_64-unknown-illumos` is a tier 2 target with host tools. | ||
`aarch64-unknown-illumos` is a tier 3 target. | ||
|
||
## Building the target | ||
|
||
These targets can be built by adding `aarch64-unknown-illumos` and | ||
`x86_64-unknown-illumos` as targets in the rustc list. | ||
|
||
## Building Rust programs | ||
|
||
Rust ships pre-compiled artifacts for the `x86_64-unknown-illumos` target. | ||
Rust does not ship pre-compiled artifacts for `aarch64-unknown-illumos`, | ||
it requires building the target either as shown above or using `-Zbuild-std`. | ||
|
||
## Testing | ||
|
||
Tests can be run in the same way as a regular binary. | ||
|
||
## Cross-compilation toolchains and C code | ||
|
||
The target supports C code. | ||
|
||
The illumos project makes available [prebuilt sysroot artefacts](https://github.com/illumos/sysroot) which can be used for cross compilation. | ||
The official Rust binaries are cross-compiled using these artefacts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//! Test that `RangeTo` and `RangeToInclusive` generate identical | ||
//! (and optimal) code; #63646 | ||
//@ compile-flags: -O -Zmerge-functions=disabled | ||
#![crate_type = "lib"] | ||
|
||
#[no_mangle] | ||
// CHECK-LABEL: range_to( | ||
pub fn range_to(a: i32, mut b: i32) -> i32 { | ||
// CHECK: %1 = and i32 %0, %a | ||
// CHECK-NEXT: ret i32 %1 | ||
for _ in 0..65 { | ||
b &= a; | ||
} | ||
|
||
b | ||
} | ||
|
||
#[no_mangle] | ||
// CHECK-LABEL: range_to_inclusive( | ||
pub fn range_to_inclusive(a: i32, mut b: i32) -> i32 { | ||
// CHECK: %1 = and i32 %0, %a | ||
// CHECK-NEXT: ret i32 %1 | ||
for _ in 0..=64 { | ||
b &= a; | ||
} | ||
|
||
b | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters