Update LLVM to 6.0.0 and Rust to 1.25.0.

release-3
whitequark 2018-05-01 08:57:26 +00:00
parent 9589decd54
commit 9c6978be84
6 changed files with 10 additions and 20 deletions

View File

@ -2,4 +2,5 @@
members = ["runtime", "ksupport", "satman"]
[profile.dev]
debug = 1 # either 0 or 2 cause an LLVM ICE
incremental = false # incompatible with LTO
debug = 2

View File

@ -229,15 +229,12 @@ const DMA_BUFFER_SIZE: usize = 64 * 1024;
struct DmaRecorder {
active: bool,
#[allow(dead_code)]
padding: [u8; 3], //https://github.com/rust-lang/rust/issues/41315
data_len: usize,
buffer: [u8; DMA_BUFFER_SIZE],
}
static mut DMA_RECORDER: DmaRecorder = DmaRecorder {
active: false,
padding: [0; 3],
data_len: 0,
buffer: [0; DMA_BUFFER_SIZE],
};

View File

@ -5,18 +5,13 @@ use analyzer_proto::*;
const BUFFER_SIZE: usize = 512 * 1024;
// hack until https://github.com/rust-lang/rust/issues/33626 is fixed
#[repr(simd)]
struct Align64(u64, u64, u64, u64, u64, u64, u64, u64);
#[repr(align(64))]
struct Buffer {
data: [u8; BUFFER_SIZE],
__alignment: [Align64; 0]
data: [u8; BUFFER_SIZE]
}
static mut BUFFER: Buffer = Buffer {
data: [0; BUFFER_SIZE],
__alignment: []
data: [0; BUFFER_SIZE]
};
fn arm() {
@ -68,9 +63,6 @@ fn worker(stream: &mut TcpStream) -> io::Result<()> {
}
pub fn thread(io: Io) {
// verify that the hack above works
assert!(::core::mem::align_of::<Buffer>() == 64);
let listener = TcpListener::new(&io, 65535);
listener.listen(1382).expect("analyzer: cannot listen");

View File

@ -1,5 +1,5 @@
#![no_std]
#![feature(compiler_builtins_lib, alloc, repr_simd, lang_items, const_fn, global_allocator)]
#![feature(compiler_builtins_lib, lang_items, alloc, global_allocator)]
extern crate compiler_builtins;
extern crate alloc;

View File

@ -18,9 +18,9 @@ requirements:
- misoc 0.11 py35_0+git3388e6ba
- jesd204b 0.3
- binutils-or1k-linux >=2.27
- llvm-or1k 4.0.1
- llvmlite-artiq 0.20.0
- rust-core-or1k 1.23.0 19
- llvm-or1k 6.0.0
- llvmlite-artiq 0.23.0.dev py35_2
- rust-core-or1k 1.25.0 20
- openocd 0.10.0 1
- lit
- outputcheck

View File

@ -26,7 +26,7 @@ requirements:
- setuptools 33.1.1
run:
- python >=3.5.3,<3.6
- llvmlite-artiq 0.20.0
- llvmlite-artiq 0.23.0.dev py35_2
- binutils-or1k-linux >=2.27
- pythonparser >=1.1
- openocd 0.10.0 1