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

Rollup of 10 pull requests #76771

Merged
merged 30 commits into from
Sep 16, 2020
Merged
Changes from 5 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
73e27b3
deny(unsafe_op_in_unsafe_fn) in libstd/process.rs
hellow554 Jul 2, 2020
a746870
Use translated variable for test string
pickfire Aug 24, 2020
ea5dc09
Make some Ordering methods const
Sep 1, 2020
79d563c
Move const tests for `Ordering` to `library\core`
CDirkx Sep 3, 2020
b54386a
Detect overflow in proc_macro_server subspan
tmiasko Aug 4, 2020
d98bac4
Add tests for overflow in Vec::drain
tmiasko Aug 4, 2020
f8cfb2f
Add tests for overflow in String / VecDeque operations using ranges
tmiasko Sep 4, 2020
d18b4bb
Note when a a move/borrow error is caused by a deref coercion
Aaron1011 Jul 25, 2020
e4c28bf
Upgrade to pulldown-cmark 0.8.0
jyn514 Sep 14, 2020
f7983ca
Don't use `link.span` yet
jyn514 Sep 14, 2020
6f2e1c6
Use `.as_str()` instead of `CowStr::Borrowed`
jyn514 Sep 14, 2020
a4183f0
librustc_target: Initial support for riscv32gc_unknown_linux_gnu
alistair23 Jul 7, 2020
82bd5a3
librustc_target: Address comments
alistair23 Sep 15, 2020
0f1d25e
Test that bounds checks are elided for indexing after .[r]position()
erikdesjardins Aug 24, 2020
5a4098e
Consolidate byte-identical modules.
ehuss Aug 20, 2020
cfb955d
Consolidate wasi alloc with unix alloc.
ehuss Aug 20, 2020
25cca07
Consolidate wasi::process and unsupported::process
ehuss Aug 20, 2020
cbda154
doc: platform-support.md: Document port
alistair23 Sep 15, 2020
e968f86
doc: platform-support.md: Move to tier 3
alistair23 Sep 15, 2020
f95d7ba
Update cargo
ehuss Sep 15, 2020
4f0c245
Rollup merge of #73955 - hellow554:unsafe_process, r=Mark-Simulacrum
Dylan-DPC Sep 15, 2020
fb9bb2b
Rollup merge of #75146 - tmiasko:range-overflow, r=Mark-Simulacrum
Dylan-DPC Sep 15, 2020
fa4cfeb
Rollup merge of #75304 - Aaron1011:feature/diag-deref-move-out, r=est…
Dylan-DPC Sep 15, 2020
034af08
Rollup merge of #75749 - ehuss:consolidate-sys, r=alexcrichton
Dylan-DPC Sep 15, 2020
c910518
Rollup merge of #75882 - pickfire:patch-6, r=jyn514
Dylan-DPC Sep 15, 2020
056c7b0
Rollup merge of #75886 - erikdesjardins:index, r=nikic
Dylan-DPC Sep 15, 2020
db22898
Rollup merge of #76048 - alistair23:alistair/rv32-linux, r=Amanieu
Dylan-DPC Sep 15, 2020
69ac076
Rollup merge of #76198 - CDirkx:const-ordering, r=dtolnay
Dylan-DPC Sep 15, 2020
1fd22fc
Rollup merge of #76689 - jyn514:update-pulldown, r=GuillaumeGomez
Dylan-DPC Sep 15, 2020
2e1f012
Rollup merge of #76763 - ehuss:update-cargo, r=ehuss
Dylan-DPC Sep 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compiler/rustc_target/src/spec/mod.rs
Original file line number Diff line number Diff line change
@@ -654,6 +654,7 @@ supported_targets! {
("riscv32i-unknown-none-elf", riscv32i_unknown_none_elf),
("riscv32imc-unknown-none-elf", riscv32imc_unknown_none_elf),
("riscv32imac-unknown-none-elf", riscv32imac_unknown_none_elf),
("riscv32gc-unknown-linux-gnu", riscv32gc_unknown_linux_gnu),
("riscv64imac-unknown-none-elf", riscv64imac_unknown_none_elf),
("riscv64gc-unknown-none-elf", riscv64gc_unknown_none_elf),
("riscv64gc-unknown-linux-gnu", riscv64gc_unknown_linux_gnu),
25 changes: 25 additions & 0 deletions compiler/rustc_target/src/spec/riscv32gc_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use crate::spec::{CodeModel, LinkerFlavor, Target, TargetOptions, TargetResult};

pub fn target() -> TargetResult {
Ok(Target {
llvm_target: "riscv32-unknown-linux-gnu".to_string(),
target_endian: "little".to_string(),
target_pointer_width: "32".to_string(),
target_c_int_width: "32".to_string(),
target_env: "gnu".to_string(),
data_layout: "e-m:e-p:32:32-i64:64-n32-S128".to_string(),
arch: "riscv32".to_string(),
target_os: "linux".to_string(),
target_vendor: "unknown".to_string(),
linker_flavor: LinkerFlavor::Gcc,
options: TargetOptions {
unsupported_abis: super::riscv_base::unsupported_abis(),
code_model: Some(CodeModel::Medium),
cpu: "generic-rv32".to_string(),
features: "+m,+a,+f,+d,+c".to_string(),
llvm_abiname: "ilp32d".to_string(),
max_atomic_width: Some(32),
..super::linux_base::opts()
},
})
}
1 change: 1 addition & 0 deletions src/doc/rustc/src/platform-support.md
Original file line number Diff line number Diff line change
@@ -195,6 +195,7 @@ target | std | host | notes
`powerpc64-unknown-linux-musl` | ? | |
`powerpc64-wrs-vxworks` | ? | |
`powerpc64le-unknown-linux-musl` | ? | |
`riscv32gc-unknown-linux-gnu` | | | RISC-V Linux (kernel 5.4, glibc 2.33)
`sparc-unknown-linux-gnu` | ✓ | | 32-bit SPARC Linux
`sparc64-unknown-netbsd` | ✓ | ✓ | NetBSD/sparc64
`sparc64-unknown-openbsd` | ? | |