Skip to content
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

Rollup of 14 pull requests #53309

Closed
wants to merge 32 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
78a1c45
run-pass/simd-intrinsic-float-minmax: Force use of qNaN on Mips
Jul 31, 2018
b3d2346
unsized ManuallyDrop
RalfJung Aug 3, 2018
3dcdb8a
remove unnecessary CoerceUnsized impl
RalfJung Aug 6, 2018
d865adc
unconfuse @eddyb
RalfJung Aug 6, 2018
5ee5a7e
repr(transparent)
RalfJung Aug 9, 2018
c9aca02
Don't panic on std::env::vars() when env in null.
BurntPizza Aug 8, 2018
6563803
Don't set rlimit to a lower value than the current
varkor Aug 9, 2018
82a704a
Add a safety check for compiletest rlimit
varkor Aug 9, 2018
1aa6c23
Feature gate where clauses on associated type impls
varkor Aug 9, 2018
898950c
targets: aarch64: Add bare-metal aarch64 target
andre-richter Aug 9, 2018
763e721
rustc_codegen_llvm: Restore the closure env alloca hack for LLVM 5.
cuviper Aug 9, 2018
176f8c2
Removed `raw_identifiers` feature gate.
alexreg Aug 9, 2018
44af068
Remove statics field from CodegenCx
bjorn3 Aug 11, 2018
535bd13
A few cleanups for fmt_macros, graphviz, apfloat, target, serialize a…
ljedrz Aug 10, 2018
66fd1eb
Make LLVM emit assembly comments with -Z asm-comments.
whitequark Aug 12, 2018
5937048
Move SmallVec and ThinVec out of libsyntax
ljedrz Aug 5, 2018
40d9bd0
A few cleanups and minor improvements for the lexer
ljedrz Aug 12, 2018
5dd8ed0
Re-enable a bunch of debuginfo tests.
michaelwoerister Aug 7, 2018
ef90ad9
Rollup merge of #53085 - ljedrz:cleanup_syntax_structures, r=ljedrz
kennytm Aug 13, 2018
81b8fdd
Rollup merge of #53154 - michaelwoerister:reenable-some-debuginfo-tes…
kennytm Aug 13, 2018
cabe191
Rollup merge of #53208 - BurntPizza:protect-the-environment, r=alexcr…
kennytm Aug 13, 2018
08efa99
Rollup merge of #53229 - varkor:rlimits_min, r=nikomatsakis
kennytm Aug 13, 2018
f38fa90
Rollup merge of #53233 - andre-richter:master, r=alexcrichton
kennytm Aug 13, 2018
c6eebd9
Rollup merge of #53235 - varkor:gat_impl_where, r=estebank
kennytm Aug 13, 2018
5931aa7
Rollup merge of #53236 - alexreg:stabilise-raw-idents, r=cramertj
kennytm Aug 13, 2018
be77e34
Rollup merge of #53239 - cuviper:llvm5-closure-alloca, r=eddyb
kennytm Aug 13, 2018
de7b89d
Rollup merge of #53274 - bjorn3:remove_statics_field, r=nagisa
kennytm Aug 13, 2018
f6493dd
Rollup merge of #53289 - ljedrz:improve_lexer, r=michaelwoerister
kennytm Aug 13, 2018
203450f
Rollup merge of #53290 - whitequark:fix-35741, r=nagisa
kennytm Aug 13, 2018
c80cf1a
Rollup merge of #52895 - draganmladjenovic:minmax_qnan, r=alexcrichton
kennytm Aug 14, 2018
6212062
Rollup merge of #53033 - RalfJung:manually_dro, r=SimonSapin
kennytm Aug 14, 2018
092475f
Rollup merge of #53246 - ljedrz:cleanup_various, r=kennytm
kennytm Aug 14, 2018
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
46 changes: 46 additions & 0 deletions src/librustc_target/spec/aarch64_unknown_none.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// Generic AArch64 target for bare-metal code
//
// Can be used in conjunction with the `target-feature` and
// `target-cpu` compiler flags to opt-in more hardware-specific
// features.
//
// For example, `-C target-cpu=cortex-a53`.

use super::{LldFlavor, LinkerFlavor, Target, TargetOptions, PanicStrategy};

pub fn target() -> Result<Target, String> {
let opts = TargetOptions {
linker: Some("rust-lld".to_owned()),
executables: true,
relocation_model: "static".to_string(),
disable_redzone: true,
linker_is_gnu: true,
max_atomic_width: Some(128),
panic_strategy: PanicStrategy::Abort,
abi_blacklist: super::arm_base::abi_blacklist(),
.. Default::default()
};
Ok(Target {
llvm_target: "aarch64-unknown-none".to_string(),
target_endian: "little".to_string(),
target_pointer_width: "64".to_string(),
target_c_int_width: "32".to_string(),
target_os: "none".to_string(),
target_env: "".to_string(),
target_vendor: "".to_string(),
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".to_string(),
arch: "aarch64".to_string(),
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
options: opts,
})
}
2 changes: 2 additions & 0 deletions src/librustc_target/spec/mod.rs
Original file line number Diff line number Diff line change
@@ -380,6 +380,8 @@ supported_targets! {
("x86_64-unknown-hermit", x86_64_unknown_hermit),

("riscv32imac-unknown-none-elf", riscv32imac_unknown_none_elf),

("aarch64-unknown-none", aarch64_unknown_none),
}

/// Everything `rustc` knows about how to compile for a specific target.