Skip to content

Commit dcd95d0

Browse files
committed
---
yaml --- r: 152774 b: refs/heads/try2 c: 0af4985 h: refs/heads/master v: v3
1 parent f71338a commit dcd95d0

File tree

27 files changed

+75
-380
lines changed

27 files changed

+75
-380
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 82ec1aef293ddc5c6373bd7f5ec323fafbdf7901
8+
refs/heads/try2: 0af4985332c16e07ad8348a941c9de4efdafb13e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/platform.mk

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -374,36 +374,6 @@ CFG_RUN_TARG_arm-unknown-linux-gnueabi=$(call CFG_RUN_arm-unknown-linux-gnueabi,
374374
RUSTC_FLAGS_arm-unknown-linux-gnueabi :=
375375
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabi :=
376376

377-
# mipsel-linux configuration
378-
CC_mipsel-linux=mipsel-linux-gcc
379-
CXX_mipsel-linux=mipsel-linux-g++
380-
CPP_mipsel-linux=mipsel-linux-gcc
381-
AR_mipsel-linux=mipsel-linux-ar
382-
CFG_LIB_NAME_mipsel-linux=lib$(1).so
383-
CFG_STATIC_LIB_NAME_mipsel-linux=lib$(1).a
384-
CFG_LIB_GLOB_mipsel-linux=lib$(1)-*.so
385-
CFG_LIB_DSYM_GLOB_mipsel-linux=lib$(1)-*.dylib.dSYM
386-
CFG_CFLAGS_mipsel-linux := -mips32 -mabi=32 $(CFLAGS)
387-
CFG_GCCISH_CFLAGS_mipsel-linux := -Wall -g -fPIC -mips32 -mabi=32 $(CFLAGS)
388-
CFG_GCCISH_CXXFLAGS_mipsel-linux := -fno-rtti $(CXXFLAGS)
389-
CFG_GCCISH_LINK_FLAGS_mipsel-linux := -shared -fPIC -g -mips32
390-
CFG_GCCISH_DEF_FLAG_mipsel-linux := -Wl,--export-dynamic,--dynamic-list=
391-
CFG_GCCISH_PRE_LIB_FLAGS_mipsel-linux := -Wl,-whole-archive
392-
CFG_GCCISH_POST_LIB_FLAGS_mipsel-linux := -Wl,-no-whole-archive
393-
CFG_DEF_SUFFIX_mipsel-linux := .linux.def
394-
CFG_LLC_FLAGS_mipsel-linux :=
395-
CFG_INSTALL_NAME_mipsel-linux =
396-
CFG_LIBUV_LINK_FLAGS_mipsel-linux =
397-
CFG_EXE_SUFFIX_mipsel-linux :=
398-
CFG_WINDOWSY_mipsel-linux :=
399-
CFG_UNIXY_mipsel-linux := 1
400-
CFG_PATH_MUNGE_mipsel-linux := true
401-
CFG_LDPATH_mipsel-linux :=
402-
CFG_RUN_mipsel-linux=
403-
CFG_RUN_TARG_mipsel-linux=
404-
RUSTC_FLAGS_mipsel-linux := -C target-cpu=mips32 -C target-feature="+mips32,+o32"
405-
406-
407377
# mips-unknown-linux-gnu configuration
408378
CC_mips-unknown-linux-gnu=mips-linux-gnu-gcc
409379
CXX_mips-unknown-linux-gnu=mips-linux-gnu-g++
@@ -642,7 +612,7 @@ define CFG_MAKE_TOOLCHAIN
642612
$$(CFG_GCCISH_DEF_FLAG_$(1))$$(3) $$(2) \
643613
$$(call CFG_INSTALL_NAME_$(1),$$(4))
644614

645-
ifeq ($$(findstring $(HOST_$(1)),arm mips mipsel),)
615+
ifeq ($$(findstring $(HOST_$(1)),arm mips),)
646616

647617
# We're using llvm-mc as our assembler because it supports
648618
# .cfi pseudo-ops on mac

branches/try2/src/doc/tutorial.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@ fn sendable_foo(f: Box<Foo + Send>) { /* ... */ }
25222522
fn shareable_bar<T: Share>(b: &Bar<T> + Share) { /* ... */ }
25232523
~~~
25242524

2525-
When no colon is specified (such as the type `Box<Foo>`), it is inferred that the
2525+
When no colon is specified (such as the type `~Foo`), it is inferred that the
25262526
value ascribes to no bounds. They must be added manually if any bounds are
25272527
necessary for usage.
25282528

@@ -2579,18 +2579,17 @@ fn radius_times_area<T: Circle>(c: T) -> f64 {
25792579

25802580
Likewise, supertrait methods may also be called on trait objects.
25812581

2582-
~~~
2582+
~~~ {.ignore}
25832583
use std::f64::consts::PI;
25842584
# trait Shape { fn area(&self) -> f64; }
25852585
# trait Circle : Shape { fn radius(&self) -> f64; }
25862586
# struct Point { x: f64, y: f64 }
25872587
# struct CircleStruct { center: Point, radius: f64 }
25882588
# impl Circle for CircleStruct { fn radius(&self) -> f64 { (self.area() / PI).sqrt() } }
25892589
# impl Shape for CircleStruct { fn area(&self) -> f64 { PI * square(self.radius) } }
2590-
# fn square(x: f64) -> f64 { x * x }
25912590
2592-
let concrete = box CircleStruct{center:Point{x:3.0,y:4.0},radius:5.0};
2593-
let mycircle: Box<Circle> = concrete as Box<Circle>;
2591+
let concrete = ~CircleStruct{center:Point{x:3.0,y:4.0},radius:5.0};
2592+
let mycircle: ~Circle = concrete as ~Circle;
25942593
let nonsense = mycircle.radius() * mycircle.area();
25952594
~~~
25962595

branches/try2/src/libcore/mem.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ mod tests {
404404
#[cfg(target_arch = "x86")]
405405
#[cfg(target_arch = "arm")]
406406
#[cfg(target_arch = "mips")]
407-
#[cfg(target_arch = "mipsel")]
408407
fn size_of_32() {
409408
assert_eq!(size_of::<uint>(), 4u);
410409
assert_eq!(size_of::<*uint>(), 4u);
@@ -436,7 +435,6 @@ mod tests {
436435
#[cfg(target_arch = "x86")]
437436
#[cfg(target_arch = "arm")]
438437
#[cfg(target_arch = "mips")]
439-
#[cfg(target_arch = "mipsel")]
440438
fn align_of_32() {
441439
assert_eq!(align_of::<uint>(), 4u);
442440
assert_eq!(align_of::<*uint>(), 4u);

branches/try2/src/libgreen/context.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,12 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
268268
}
269269

270270
#[cfg(target_arch = "mips")]
271-
#[cfg(target_arch = "mipsel")]
272271
type Registers = [uint, ..32];
273272

274273
#[cfg(target_arch = "mips")]
275-
#[cfg(target_arch = "mipsel")]
276274
fn new_regs() -> Box<Registers> { box {[0, .. 32]} }
277275

278276
#[cfg(target_arch = "mips")]
279-
#[cfg(target_arch = "mipsel")]
280277
fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
281278
procedure: raw::Procedure, sp: *mut uint) {
282279
let sp = align_down(sp);

branches/try2/src/liblibc/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ pub mod types {
463463
#[cfg(target_arch = "x86")]
464464
#[cfg(target_arch = "arm")]
465465
#[cfg(target_arch = "mips")]
466-
#[cfg(target_arch = "mipsel")]
467466
pub mod arch {
468467
pub mod c95 {
469468
pub type c_char = i8;
@@ -492,7 +491,6 @@ pub mod types {
492491
}
493492
#[cfg(target_arch = "x86")]
494493
#[cfg(target_arch = "mips")]
495-
#[cfg(target_arch = "mipsel")]
496494
pub mod posix88 {
497495
pub type off_t = i32;
498496
pub type dev_t = u64;
@@ -601,7 +599,6 @@ pub mod types {
601599
}
602600
}
603601
#[cfg(target_arch = "mips")]
604-
#[cfg(target_arch = "mipsel")]
605602
pub mod posix01 {
606603
use types::os::arch::c95::{c_long, c_ulong, time_t};
607604
use types::os::arch::posix88::{gid_t, ino_t};
@@ -2212,7 +2209,6 @@ pub mod consts {
22122209
}
22132210

22142211
#[cfg(target_arch = "mips")]
2215-
#[cfg(target_arch = "mipsel")]
22162212
pub mod posix88 {
22172213
use types::os::arch::c95::c_int;
22182214
use types::common::c95::c_void;
@@ -2487,7 +2483,6 @@ pub mod consts {
24872483
pub static PTHREAD_STACK_MIN: size_t = 16384;
24882484

24892485
#[cfg(target_arch = "mips", target_os = "linux")]
2490-
#[cfg(target_arch = "mipsel", target_os = "linux")]
24912486
pub static PTHREAD_STACK_MIN: size_t = 131072;
24922487

24932488
pub static CLOCK_REALTIME: c_int = 0;
@@ -2541,7 +2536,6 @@ pub mod consts {
25412536
pub static SHUT_RDWR: c_int = 2;
25422537
}
25432538
#[cfg(target_arch = "mips")]
2544-
#[cfg(target_arch = "mipsel")]
25452539
pub mod bsd44 {
25462540
use types::os::arch::c95::c_int;
25472541

@@ -2610,7 +2604,6 @@ pub mod consts {
26102604
pub static MAP_STACK : c_int = 0x020000;
26112605
}
26122606
#[cfg(target_arch = "mips")]
2613-
#[cfg(target_arch = "mipsel")]
26142607
pub mod extra {
26152608
use types::os::arch::c95::c_int;
26162609

@@ -2983,7 +2976,6 @@ pub mod consts {
29832976
pub static PTHREAD_STACK_MIN: size_t = 4096;
29842977

29852978
#[cfg(target_arch = "mips")]
2986-
#[cfg(target_arch = "mipsel")]
29872979
#[cfg(target_arch = "x86")]
29882980
#[cfg(target_arch = "x86_64")]
29892981
pub static PTHREAD_STACK_MIN: size_t = 2048;

branches/try2/src/libnative/io/c_unix.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,20 @@ use libc;
2323
#[cfg(target_os = "ios")]
2424
#[cfg(target_os = "freebsd")]
2525
pub static FIONBIO: libc::c_ulong = 0x8004667e;
26-
#[cfg(target_os = "linux", target_arch = "x86")]
27-
#[cfg(target_os = "linux", target_arch = "x86_64")]
28-
#[cfg(target_os = "linux", target_arch = "arm")]
26+
#[cfg(target_os = "linux", not(target_arch = "mips"))]
2927
#[cfg(target_os = "android")]
3028
pub static FIONBIO: libc::c_ulong = 0x5421;
3129
#[cfg(target_os = "linux", target_arch = "mips")]
32-
#[cfg(target_os = "linux", target_arch = "mipsel")]
3330
pub static FIONBIO: libc::c_ulong = 0x667e;
3431

3532
#[cfg(target_os = "macos")]
3633
#[cfg(target_os = "ios")]
3734
#[cfg(target_os = "freebsd")]
3835
pub static FIOCLEX: libc::c_ulong = 0x20006601;
39-
#[cfg(target_os = "linux", target_arch = "x86")]
40-
#[cfg(target_os = "linux", target_arch = "x86_64")]
41-
#[cfg(target_os = "linux", target_arch = "arm")]
36+
#[cfg(target_os = "linux", not(target_arch = "mips"))]
4237
#[cfg(target_os = "android")]
4338
pub static FIOCLEX: libc::c_ulong = 0x5451;
4439
#[cfg(target_os = "linux", target_arch = "mips")]
45-
#[cfg(target_os = "linux", target_arch = "mipsel")]
4640
pub static FIOCLEX: libc::c_ulong = 0x6601;
4741

4842
#[cfg(target_os = "macos")]
@@ -115,9 +109,7 @@ mod select {
115109
}
116110
}
117111

118-
#[cfg(target_os = "linux", target_arch = "x86")]
119-
#[cfg(target_os = "linux", target_arch = "x86_64")]
120-
#[cfg(target_os = "linux", target_arch = "arm")]
112+
#[cfg(target_os = "linux", not(target_arch = "mips"))]
121113
#[cfg(target_os = "android")]
122114
mod signal {
123115
use libc;
@@ -161,7 +153,6 @@ mod signal {
161153
}
162154

163155
#[cfg(target_os = "linux", target_arch = "mips")]
164-
#[cfg(target_os = "linux", target_arch = "mipsel")]
165156
mod signal {
166157
use libc;
167158

branches/try2/src/librustc/back/mipsel.rs

Lines changed: 0 additions & 72 deletions
This file was deleted.

branches/try2/src/librustc/driver/config.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use driver::session::Session;
1818
use back;
1919
use back::link;
2020
use back::target_strs;
21-
use back::{arm, x86, x86_64, mips, mipsel};
21+
use back::{arm, x86, x86_64, mips};
2222
use middle::lint;
2323

2424
use syntax::abi;
@@ -373,8 +373,7 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig {
373373
abi::X86 => ("little", "x86", "32"),
374374
abi::X86_64 => ("little", "x86_64", "64"),
375375
abi::Arm => ("little", "arm", "32"),
376-
abi::Mips => ("big", "mips", "32"),
377-
abi::Mipsel => ("little", "mipsel", "32")
376+
abi::Mips => ("big", "mips", "32")
378377
};
379378

380379
let fam = match sess.targ_cfg.os {
@@ -453,7 +452,6 @@ static architecture_abis : &'static [(&'static str, abi::Architecture)] = &'stat
453452
("xscale", abi::Arm),
454453
("thumb", abi::Arm),
455454

456-
("mipsel", abi::Mipsel),
457455
("mips", abi::Mips)];
458456

459457
pub fn build_target_config(sopts: &Options) -> Config {
@@ -472,16 +470,14 @@ pub fn build_target_config(sopts: &Options) -> Config {
472470
abi::X86 => (ast::TyI32, ast::TyU32),
473471
abi::X86_64 => (ast::TyI64, ast::TyU64),
474472
abi::Arm => (ast::TyI32, ast::TyU32),
475-
abi::Mips => (ast::TyI32, ast::TyU32),
476-
abi::Mipsel => (ast::TyI32, ast::TyU32)
473+
abi::Mips => (ast::TyI32, ast::TyU32)
477474
};
478475
let target_triple = sopts.target_triple.clone();
479476
let target_strs = match arch {
480477
abi::X86 => x86::get_target_strs(target_triple, os),
481478
abi::X86_64 => x86_64::get_target_strs(target_triple, os),
482479
abi::Arm => arm::get_target_strs(target_triple, os),
483-
abi::Mips => mips::get_target_strs(target_triple, os),
484-
abi::Mipsel => mipsel::get_target_strs(target_triple, os)
480+
abi::Mips => mips::get_target_strs(target_triple, os)
485481
};
486482
Config {
487483
os: os,

branches/try2/src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ pub mod back {
9999
pub mod link;
100100
pub mod lto;
101101
pub mod mips;
102-
pub mod mipsel;
103102
pub mod rpath;
104103
pub mod svh;
105104
pub mod target_strs;

branches/try2/src/librustc/middle/mem_categorization.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,10 @@ impl<'t,TYPER:Typer> MemCategorizationContext<'t,TYPER> {
11211121
"captured outer variable".to_string()
11221122
}
11231123
_ => {
1124-
format!("dereference of `{}`-pointer", ptr_sigil(pk))
1124+
match pk {
1125+
OwnedPtr | GcPtr => format!("dereference of `{}`", ptr_sigil(pk)),
1126+
_ => format!("dereference of `{}`-pointer", ptr_sigil(pk))
1127+
}
11251128
}
11261129
}
11271130
}
@@ -1291,8 +1294,8 @@ impl Repr for categorization {
12911294

12921295
pub fn ptr_sigil(ptr: PointerKind) -> &'static str {
12931296
match ptr {
1294-
OwnedPtr => "~",
1295-
GcPtr => "@",
1297+
OwnedPtr => "Box",
1298+
GcPtr => "Gc",
12961299
BorrowedPtr(ty::ImmBorrow, _) => "&",
12971300
BorrowedPtr(ty::MutBorrow, _) => "&mut",
12981301
BorrowedPtr(ty::UniqueImmBorrow, _) => "&unique",

branches/try2/src/librustc/middle/trans/adt.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use middle::trans::type_::Type;
5959
use middle::trans::type_of;
6060
use middle::ty;
6161
use middle::ty::Disr;
62-
use syntax::abi::{X86, X86_64, Arm, Mips, Mipsel};
62+
use syntax::abi::{X86, X86_64, Arm, Mips};
6363
use syntax::ast;
6464
use syntax::attr;
6565
use syntax::attr::IntType;
@@ -365,7 +365,6 @@ fn range_to_inttype(cx: &CrateContext, hint: Hint, bounds: &IntBounds) -> IntTyp
365365
// corresponding to `choose_shortest`. However, we don't run on those yet...?
366366
Arm => at_least_32,
367367
Mips => at_least_32,
368-
Mipsel => at_least_32,
369368
}
370369
}
371370
attr::ReprAny => {

0 commit comments

Comments
 (0)