rust/src/librustc_back
bors 689c6c48ec Auto merge of #36024 - japaric:mips64, r=alexcrichton
add mips64-gnu and mips64el-gnu targets

With this commit one can build no_core (and probably no_std as well)
Rust programs for these targets. It's not yet possible to cross compile
std for these targets because rust-lang/libc doesn't know about the
mips64 architecture.

These targets have been tested by cross compiling the "smallest hello"
program (see code below) and then running it under QEMU.

``` rust

extern {
    fn puts(_: *const u8);
}

fn start(_: isize, _: *const *const u8) -> isize {
    unsafe {
        let msg = b"Hello, world!\0";
        puts(msg as *const _ as *const u8);
    }
    0
}

trait Copy {}

trait Sized {}
```

cc #36015
r? @alexcrichton
cc @brson

The cabi stuff is likely wrong. I just copied cabi_mips source and changed some `4`s to `8`s and `32`s to `64`s. It was enough to get libc's `puts` to work but I'd like someone familiar with this module to check it.
2016-09-02 03:01:48 -07:00
..
target Auto merge of #36024 - japaric:mips64, r=alexcrichton 2016-09-02 03:01:48 -07:00
Cargo.toml rustc: move rustc_front to rustc::hir. 2016-04-06 09:01:55 +03:00
dynamic_lib.rs std: Stabilize APIs for the 1.10 release 2016-05-24 09:00:39 -07:00
lib.rs std: Stabilize APIs for the 1.10 release 2016-05-24 09:00:39 -07:00
rpath.rs Pass --enable-new-dtags to GNU ld 2015-12-15 21:20:44 -05:00
sha2.rs Improve internal documentation and code style 2016-05-21 08:51:08 -05:00
slice.rs std: Stabilize library APIs for 1.5 2015-10-25 09:36:32 -07:00
tempdir.rs try! -> ? 2016-03-22 22:01:37 -05:00