Skip to content

Rollup of 10 pull requests #119754

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

Merged
merged 22 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
648c70e
Fix a typo in core::ops::Deref's doc
Laura7089 Jan 5, 2024
4292190
remove an unnecessary stderr-per-bitwidth
RalfJung Jan 6, 2024
c51828a
tests: Normalize `\r\n` to `\n` in some run-make tests
petrochenkov Jan 6, 2024
957a46f
coverage: Anonymize line numbers in branch views
Zalathar Nov 16, 2023
be0293f
Remove crossbeam-channel
Mark-Simulacrum Jan 8, 2024
e651f6f
Add helper for when we want to know if an item has a host param
compiler-errors Jan 8, 2024
75df38e
Fix 2 variable binding issues in let_underscore
chenyukang Jan 7, 2024
585a285
coverage: Test for column numbers involving non-ASCII characters
Zalathar Dec 15, 2023
88f5759
coverage: Allow `make_code_region` to fail
Zalathar Jan 6, 2024
f2dbeba
Improved support of collapse_debuginfo attribute for macros.
azhogin Nov 29, 2023
6971e93
coverage: `llvm-cov` expects column numbers to be bytes, not code points
Zalathar Dec 15, 2023
43ce533
Add riscv32imafc-esp-espidf target for the ESP32-P4.
MabezDev Jan 8, 2024
ee7d4c1
Rollup merge of #118903 - azhogin:azhogin/skip_second_stmt_debuginfo.…
matthiaskrgr Jan 8, 2024
70e3f8d
Rollup merge of #119033 - Zalathar:unicode, r=davidtwco
matthiaskrgr Jan 8, 2024
668e8b5
Rollup merge of #119598 - Laura7089:fix/deref-typo, r=Nilstrieb
matthiaskrgr Jan 8, 2024
34771e2
Rollup merge of #119660 - RalfJung:const-ub-enum, r=oli-obk
matthiaskrgr Jan 8, 2024
e6bc9f0
Rollup merge of #119663 - petrochenkov:rmakefix, r=Mark-Simulacrum
matthiaskrgr Jan 8, 2024
867a87d
Rollup merge of #119681 - Zalathar:anon-branch, r=clubby789
matthiaskrgr Jan 8, 2024
5efa69d
Rollup merge of #119704 - chenyukang:yukang-fix-let_underscore, r=Nil…
matthiaskrgr Jan 8, 2024
cd93114
Rollup merge of #119725 - compiler-errors:has_effect_param, r=fmease
matthiaskrgr Jan 8, 2024
eb6ce92
Rollup merge of #119738 - esp-rs:esp32p4-espidf, r=Nilstrieb
matthiaskrgr Jan 8, 2024
1c9e862
Rollup merge of #119740 - Mark-Simulacrum:drop-crossbeam, r=davidtwco
matthiaskrgr Jan 8, 2024
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
Prev Previous commit
Next Next commit
Add riscv32imafc-esp-espidf target for the ESP32-P4.
  • Loading branch information
MabezDev committed Jan 8, 2024
commit 43ce53375c976ad31629282e17ca7861c0d23a2c
2 changes: 2 additions & 0 deletions compiler/rustc_target/src/spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,8 @@ supported_targets! {
("riscv32imc-unknown-none-elf", riscv32imc_unknown_none_elf),
("riscv32imc-esp-espidf", riscv32imc_esp_espidf),
("riscv32imac-esp-espidf", riscv32imac_esp_espidf),
("riscv32imafc-esp-espidf", riscv32imafc_esp_espidf),

("riscv32imac-unknown-none-elf", riscv32imac_unknown_none_elf),
("riscv32imafc-unknown-none-elf", riscv32imafc_unknown_none_elf),
("riscv32imac-unknown-xous-elf", riscv32imac_unknown_xous_elf),
Expand Down
30 changes: 30 additions & 0 deletions compiler/rustc_target/src/spec/targets/riscv32imafc_esp_espidf.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
use crate::spec::{cvs, PanicStrategy, RelocModel, Target, TargetOptions};

pub fn target() -> Target {
Target {
data_layout: "e-m:e-p:32:32-i64:64-n32-S128".into(),
llvm_target: "riscv32".into(),
pointer_width: 32,
arch: "riscv32".into(),

options: TargetOptions {
families: cvs!["unix"],
os: "espidf".into(),
env: "newlib".into(),
vendor: "espressif".into(),
linker: Some("riscv32-esp-elf-gcc".into()),
cpu: "generic-rv32".into(),

max_atomic_width: Some(32),
atomic_cas: true,

llvm_abiname: "ilp32f".into(),
features: "+m,+a,+c,+f".into(),
panic_strategy: PanicStrategy::Abort,
relocation_model: RelocModel::Static,
emit_debug_gdb_scripts: false,
eh_frame_header: false,
..Default::default()
},
}
}
1 change: 1 addition & 0 deletions src/doc/rustc/src/platform-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ target | std | host | notes
[`riscv32imac-unknown-xous-elf`](platform-support/riscv32imac-unknown-xous-elf.md) | ? | | RISC-V Xous (RV32IMAC ISA)
[`riscv32imc-esp-espidf`](platform-support/esp-idf.md) | ✓ | | RISC-V ESP-IDF
[`riscv32imac-esp-espidf`](platform-support/esp-idf.md) | ✓ | | RISC-V ESP-IDF
[`riscv32imafc-esp-espidf`](platform-support/esp-idf.md) | ✓ | | RISC-V ESP-IDF
[`riscv64gc-unknown-hermit`](platform-support/hermit.md) | ✓ | | RISC-V Hermit
`riscv64gc-unknown-freebsd` | | | RISC-V FreeBSD
`riscv64gc-unknown-fuchsia` | | | RISC-V Fuchsia
Expand Down
1 change: 1 addition & 0 deletions src/doc/rustc/src/platform-support/esp-idf.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The target names follow this format: `$ARCH-esp-espidf`, where `$ARCH` specifies
| `riscv32imc-esp-espidf` | [ESP32-C3](https://www.espressif.com/en/products/socs/esp32-c3) | `v4.3` |
| `riscv32imac-esp-espidf` | [ESP32-C6](https://www.espressif.com/en/products/socs/esp32-c6) | `v5.1` |
| `riscv32imac-esp-espidf` | [ESP32-H2](https://www.espressif.com/en/products/socs/esp32-h2) | `v5.1` |
| `riscv32imafc-esp-espidf`| [ESP32-P4](https://www.espressif.com/en/news/ESP32-P4) | `v5.2` |

It is recommended to use the latest ESP-IDF stable release if possible.

Expand Down