about summary refs log tree commit diff
path: root/library/panic_unwind
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-19 11:47:56 +0200
committerGitHub <noreply@github.com>2020-09-19 11:47:56 +0200
commitb4c3f409af031a4bcc2cf1bb693789201a33ec1c (patch)
tree61a7b35eee5c8317484af248dfadb2f6615ab9e4 /library/panic_unwind
parent404cce068597b109a97b492ac268c7994a1a1606 (diff)
parent3d1b6d6cc29587ace6895814fa32ec38a49d8a68 (diff)
downloadrust-b4c3f409af031a4bcc2cf1bb693789201a33ec1c.tar.gz
rust-b4c3f409af031a4bcc2cf1bb693789201a33ec1c.zip
Rollup merge of #76798 - alistair23:alistair/rv32-linux, r=jyn514
Build fixes for RISC-V 32-bit Linux support

This fixes build issues with the 32-bit RISC-V port.
Diffstat (limited to 'library/panic_unwind')
-rw-r--r--library/panic_unwind/src/gcc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/panic_unwind/src/gcc.rs b/library/panic_unwind/src/gcc.rs
index 85a2a18947d..1cfd527b584 100644
--- a/library/panic_unwind/src/gcc.rs
+++ b/library/panic_unwind/src/gcc.rs
@@ -120,7 +120,7 @@ const UNWIND_DATA_REG: (i32, i32) = (24, 25); // I0, I1
 #[cfg(target_arch = "hexagon")]
 const UNWIND_DATA_REG: (i32, i32) = (0, 1); // R0, R1
 
-#[cfg(target_arch = "riscv64")]
+#[cfg(any(target_arch = "riscv64", target_arch = "riscv32"))]
 const UNWIND_DATA_REG: (i32, i32) = (10, 11); // x10, x11
 
 // The following code is based on GCC's C and C++ personality routines.  For reference, see: