forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
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#129108 - matthiaskrgr:rollup-t4rjwgp, r=matth…
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#125970 (CommandExt::before_exec: deprecate safety in edition 2024) - rust-lang#127905 (Add powerpc-unknown-linux-muslspe compile target) - rust-lang#128925 (derive(SmartPointer): register helper attributes) - rust-lang#128946 (Hash Ipv*Addr as an integer) - rust-lang#128963 (Add possibility to generate rustdoc JSON output to stdout) - rust-lang#129015 (Update books) - rust-lang#129067 (Use `append` instead of `extend(drain(..))`) - rust-lang#129100 (Fix dependencies cron job) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
38 changed files
with
419 additions
and
66 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
28 changes: 28 additions & 0 deletions
28
compiler/rustc_target/src/spec/targets/powerpc_unknown_linux_muslspe.rs
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 @@ | ||
use crate::abi::Endian; | ||
use crate::spec::{base, Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetOptions}; | ||
|
||
pub fn target() -> Target { | ||
let mut base = base::linux_musl::opts(); | ||
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mspe"]); | ||
base.max_atomic_width = Some(32); | ||
base.stack_probes = StackProbeType::Inline; | ||
|
||
Target { | ||
llvm_target: "powerpc-unknown-linux-muslspe".into(), | ||
metadata: crate::spec::TargetMetadata { | ||
description: Some("PowerPC SPE Linux with musl".into()), | ||
tier: Some(3), | ||
host_tools: Some(false), | ||
std: Some(true), | ||
}, | ||
pointer_width: 32, | ||
data_layout: "E-m:e-p:32:32-Fn32-i64:64-n32".into(), | ||
arch: "powerpc".into(), | ||
options: TargetOptions { | ||
abi: "spe".into(), | ||
endian: Endian::Big, | ||
mcount: "_mcount".into(), | ||
..base | ||
}, | ||
} | ||
} |
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
Submodule book
updated
11 files
Submodule edition-guide
updated
5 files
+3 −2 | src/SUMMARY.md | |
+39 −0 | src/rust-2024/missing-macro-fragment-specifiers.md | |
+20 −7 | src/rust-2024/prelude.md | |
+291 −3 | src/rust-2024/rpit-lifetime-capture.md | |
+2 −4 | src/rust-2024/unsafe-extern.md |
Submodule nomicon
updated
3 files
+2 −4 | src/exotic-sizes.md | |
+3 −3 | src/other-reprs.md | |
+1 −1 | src/what-unsafe-does.md |
Submodule reference
updated
26 files
+1 −1 | mdbook-spec/src/std_links.rs | |
+1 −1 | src/attributes.md | |
+10 −8 | src/attributes/codegen.md | |
+156 −2 | src/inline-assembly.md | |
+3 −0 | src/items/constant-items.md | |
+42 −10 | src/items/enumerations.md | |
+4 −5 | src/items/extern-crates.md | |
+37 −36 | src/items/external-blocks.md | |
+17 −5 | src/items/functions.md | |
+4 −7 | src/items/generics.md | |
+5 −5 | src/items/modules.md | |
+10 −1 | src/items/static-items.md | |
+16 −12 | src/items/structs.md | |
+4 −0 | src/items/traits.md | |
+4 −4 | src/items/type-aliases.md | |
+2 −0 | src/items/unions.md | |
+257 −57 | src/items/use-declarations.md | |
+2 −0 | src/keywords.md | |
+0 −5 | src/names/namespaces.md | |
+42 −13 | src/paths.md | |
+2 −1 | src/patterns.md | |
+6 −1 | src/procedural-macros.md | |
+2 −2 | src/types/never.md | |
+8 −2 | src/unsafe-keyword.md | |
+2 −0 | src/unsafety.md | |
+0 −17 | theme/reference.css |
Submodule rust-by-example
updated
3 files
+0 −1 | README.md | |
+30 −2 | src/conversion/string.md | |
+1 −1 | src/scope/lifetime/lifetime_bounds.md |
Submodule rustc-dev-guide
updated
37 files
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
32 changes: 32 additions & 0 deletions
32
src/doc/rustc/src/platform-support/powerpc-unknown-linux-muslspe.md
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,32 @@ | ||
# powerpc-unknown-linux-muslspe | ||
|
||
**Tier: 3** | ||
|
||
This target is very similar to already existing ones like `powerpc_unknown_linux_musl` and `powerpc_unknown_linux_gnuspe`. | ||
This one has PowerPC SPE support for musl. Unfortunately, the last supported gcc version with PowerPC SPE is 8.4.0. | ||
|
||
## Target maintainers | ||
|
||
- [@BKPepe](https://github.com/BKPepe) | ||
|
||
## Requirements | ||
|
||
This target is cross-compiled. There is no support for `std`. There is no | ||
default allocator, but it's possible to use `alloc` by supplying an allocator. | ||
|
||
This target generated binaries in the ELF format. | ||
|
||
## Building the target | ||
|
||
This target was tested and used within the `OpenWrt` build system for CZ.NIC Turris 1.x routers using Freescale P2020. | ||
|
||
## Building Rust programs | ||
|
||
Rust does not yet ship pre-compiled artifacts for this target. To compile for | ||
this target, you will either need to build Rust with the target enabled (see | ||
"Building the target" above), or build your own copy of `core` by using | ||
`build-std` or similar. | ||
|
||
## Testing | ||
|
||
This is a cross-compiled target and there is no support to run rustc test suite. |
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
Oops, something went wrong.