Skip to content

Commit 6e35de5

Browse files
committed
---
yaml --- r: 233689 b: refs/heads/beta c: 656c3ac h: refs/heads/master i: 233687: afa3b09 v: v3
1 parent baf6481 commit 6e35de5

File tree

137 files changed

+2196
-1829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+2196
-1829
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 528d99c014f551f44892e65058798c8c2f59ac74
26+
refs/heads/beta: 656c3acdebb6334b82e3e11251dca6d43406e269
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ valopt python "" "set path to python"
602602
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
603603
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
604604
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path (deprecated)"
605+
valopt i686-linux-android-ndk "" "i686-linux-android NDK standalone path"
605606
valopt arm-linux-androideabi-ndk "" "arm-linux-androideabi NDK standalone path"
606607
valopt aarch64-linux-android-ndk "" "aarch64-linux-android NDK standalone path"
607608
valopt release-channel "dev" "the name of the release channel to build"
@@ -1693,6 +1694,7 @@ putvar CFG_LIBDIR_RELATIVE
16931694
putvar CFG_DISABLE_MANAGE_SUBMODULES
16941695
putvar CFG_AARCH64_LINUX_ANDROID_NDK
16951696
putvar CFG_ARM_LINUX_ANDROIDEABI_NDK
1697+
putvar CFG_I686_LINUX_ANDROID_NDK
16961698
putvar CFG_MANDIR
16971699

16981700
# Avoid spurious warnings from clang by feeding it original source on
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# i686-linux-android configuration
2+
CC_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-gcc
3+
CXX_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-g++
4+
CPP_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-gcc -E
5+
AR_i686-linux-android=$(CFG_I686_LINUX_ANDROID_NDK)/bin/i686-linux-android-ar
6+
CFG_LIB_NAME_i686-linux-android=lib$(1).so
7+
CFG_STATIC_LIB_NAME_i686-linux-android=lib$(1).a
8+
CFG_LIB_GLOB_i686-linux-android=lib$(1)-*.so
9+
CFG_LIB_DSYM_GLOB_i686-linux-android=lib$(1)-*.dylib.dSYM
10+
CFG_JEMALLOC_CFLAGS_i686-linux-android := -D__i686__ -DANDROID -D__ANDROID__ $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_i686-linux-android := -Wall -g -fPIC -D__i686__ -DANDROID -D__ANDROID__ $(CFLAGS)
12+
CFG_GCCISH_CXXFLAGS_i686-linux-android := -fno-rtti $(CXXFLAGS)
13+
CFG_GCCISH_LINK_FLAGS_i686-linux-android := -shared -fPIC -ldl -g -lm -lsupc++
14+
CFG_GCCISH_DEF_FLAG_i686-linux-android := -Wl,--export-dynamic,--dynamic-list=
15+
CFG_LLC_FLAGS_i686-linux-android :=
16+
CFG_INSTALL_NAME_i686-linux-android =
17+
CFG_EXE_SUFFIX_i686-linux-android :=
18+
CFG_WINDOWSY_i686-linux-android :=
19+
CFG_UNIXY_i686-linux-android := 1
20+
CFG_LDPATH_i686-linux-android :=
21+
CFG_RUN_i686-linux-android=
22+
CFG_RUN_TARG_i686-linux-android=
23+
RUSTC_FLAGS_i686-linux-android :=
24+
RUSTC_CROSS_FLAGS_i686-linux-android :=
25+
CFG_GNU_TRIPLE_i686-linux-android := i686-linux-android

branches/beta/src/liblibc/lib.rs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,18 +466,19 @@ pub mod types {
466466
pub type off_t = i32;
467467
pub type dev_t = u32;
468468
pub type ino_t = u32;
469+
469470
pub type pid_t = i32;
470471
pub type uid_t = u32;
471472
pub type gid_t = u32;
472473
pub type useconds_t = u32;
474+
473475
pub type mode_t = u16;
474476
pub type ssize_t = i32;
475477
}
476-
#[cfg(any(target_arch = "x86",
478+
#[cfg(any(all(any(target_arch = "arm", target_arch = "x86"),
479+
not(target_os = "android")),
477480
target_arch = "le32",
478-
target_arch = "powerpc",
479-
all(any(target_arch = "arm", target_arch = "x86"),
480-
not(target_os = "android"))))]
481+
target_arch = "powerpc"))]
481482
pub mod posix01 {
482483
use types::os::arch::c95::{c_short, c_long, time_t};
483484
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
@@ -523,12 +524,13 @@ pub mod types {
523524
pub __size: [u32; 9]
524525
}
525526
}
527+
526528
#[cfg(all(any(target_arch = "arm", target_arch = "x86"),
527-
target_os = "android"))]
529+
target_os = "android"))]
528530
pub mod posix01 {
529-
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, time_t};
531+
use types::os::arch::c95::{c_uchar, c_uint, c_ulong, c_long, time_t};
530532
use types::os::arch::c99::{c_longlong, c_ulonglong};
531-
use types::os::arch::posix88::{uid_t, gid_t, ino_t};
533+
use types::os::arch::posix88::{uid_t, gid_t};
532534

533535
pub type nlink_t = u16;
534536
pub type blksize_t = u32;
@@ -538,15 +540,15 @@ pub mod types {
538540
#[derive(Copy, Clone)] pub struct stat {
539541
pub st_dev: c_ulonglong,
540542
pub __pad0: [c_uchar; 4],
541-
pub __st_ino: ino_t,
543+
pub __st_ino: c_long,
542544
pub st_mode: c_uint,
543545
pub st_nlink: c_uint,
544546
pub st_uid: uid_t,
545547
pub st_gid: gid_t,
546548
pub st_rdev: c_ulonglong,
547549
pub __pad3: [c_uchar; 4],
548550
pub st_size: c_longlong,
549-
pub st_blksize: blksize_t,
551+
pub st_blksize: c_ulong,
550552
pub st_blocks: c_ulonglong,
551553
pub st_atime: time_t,
552554
pub st_atime_nsec: c_ulong,
@@ -568,6 +570,7 @@ pub mod types {
568570
pub __size: [u32; 9]
569571
}
570572
}
573+
571574
#[cfg(any(target_arch = "mips",
572575
target_arch = "mipsel"))]
573576
pub mod posix01 {

branches/beta/src/librustc/ast_map/blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<'a> FnLikeNode<'a> {
191191
visit::FkItemFn(p.ident, p.generics, p.unsafety, p.constness, p.abi, p.vis)
192192
};
193193
let closure = |_: ClosureParts| {
194-
visit::FkFnBlock
194+
visit::FkClosure
195195
};
196196
let method = |_, ident, sig: &'a ast::MethodSig, vis, _, _| {
197197
visit::FkMethod(ident, sig, vis)

branches/beta/src/librustc/ast_map/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use self::MapEntry::*;
1414

1515
use metadata::inline::InlinedItem;
1616
use metadata::inline::InlinedItem as II;
17+
use middle::def_id::DefId;
1718
use syntax::abi;
1819
use syntax::ast::*;
1920
use syntax::ast_util;
@@ -378,7 +379,7 @@ impl<'ast> Map<'ast> {
378379
match self.find_entry(parent) {
379380
Some(RootInlinedParent(&InlinedParent {ii: II::TraitItem(did, _), ..})) => did,
380381
Some(RootInlinedParent(&InlinedParent {ii: II::ImplItem(did, _), ..})) => did,
381-
_ => ast_util::local_def(parent)
382+
_ => DefId::local(parent)
382383
}
383384
}
384385

@@ -591,7 +592,7 @@ impl<'ast> Map<'ast> {
591592
}
592593

593594
pub fn def_id_span(&self, def_id: DefId, fallback: Span) -> Span {
594-
if def_id.krate == LOCAL_CRATE {
595+
if def_id.is_local() {
595596
self.opt_span(def_id.node).unwrap_or(fallback)
596597
} else {
597598
fallback

branches/beta/src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ pub mod middle {
118118
pub mod dataflow;
119119
pub mod dead;
120120
pub mod def;
121+
pub mod def_id;
121122
pub mod dependency_format;
122123
pub mod effect;
123124
pub mod entry;

0 commit comments

Comments
 (0)