about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-01 09:56:18 +0000
committerbors <bors@rust-lang.org>2017-01-01 09:56:18 +0000
commite1279a0b30a6a36822ecf7c7cc683953e1239745 (patch)
tree39c4f3349ee7128c7d9e546b1a93eb05326fa913 /src/liballoc_system
parente227433dc39ab13aa2368814169c049b8f876825 (diff)
parentb14785d3d0e3093983f6d6e266b754e1b536da10 (diff)
downloadrust-e1279a0b30a6a36822ecf7c7cc683953e1239745.tar.gz
rust-e1279a0b30a6a36822ecf7c7cc683953e1239745.zip
Auto merge of #38726 - japaric:sparc64, r=sanxiyn
sparc64-linux support

This is built on top of #38656 and depends on rust-lang/libc#483

Hello world works.

The libc-test test suite passes.

`panic!` doesn't fully work:

```
$ qemu-sparc64-static ./panic
thread 'main' panicked at 'explicit panic', panic.rs:1
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Illegal instruction (core dumped)
```

Backtraces don't work either, probably related to the previous point:

```
$ export RUST_BACKTRACE=1
$ qemu-sparc64-static ./panic
thread 'main' panicked at 'explicit panic', panic.rs:1
stack backtrace:
Illegal instruction (core dumped)
```

r? @alexcrichton

@jakllsch Does panicking / backtraces work on sparc64-netbsd?

cc @glaubitz
Diffstat (limited to 'src/liballoc_system')
-rw-r--r--src/liballoc_system/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs
index 4daa6cbb846..5f0b637656b 100644
--- a/src/liballoc_system/lib.rs
+++ b/src/liballoc_system/lib.rs
@@ -35,7 +35,8 @@ const MIN_ALIGN: usize = 8;
 #[cfg(all(any(target_arch = "x86_64",
               target_arch = "aarch64",
               target_arch = "mips64",
-              target_arch = "s390x")))]
+              target_arch = "s390x",
+              target_arch = "sparc64")))]
 const MIN_ALIGN: usize = 16;
 
 #[no_mangle]