Skip to content

Commit 68faa44

Browse files
committed
---
yaml --- r: 95261 b: refs/heads/dist-snap c: e293026 h: refs/heads/master i: 95259: ee12f2a v: v3
1 parent f7516de commit 68faa44

File tree

11 files changed

+114
-719
lines changed

11 files changed

+114
-719
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 580adc9ad38bfe3585e8d17ba9ad4766cbc1ff1c
9+
refs/heads/dist-snap: e293026e9c41a5322d95098c30e193fdb815c1bb
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/lib/llvm.rs

Lines changed: 2 additions & 458 deletions
Large diffs are not rendered by default.

branches/dist-snap/src/librustc/middle/trans/base.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3119,11 +3119,6 @@ pub fn trans_crate(sess: session::Session,
31193119
symbol_hasher,
31203120
link_meta,
31213121
analysis.reachable);
3122-
3123-
if ccx.sess.opts.debuginfo {
3124-
debuginfo::initialize(ccx, &crate);
3125-
}
3126-
31273122
{
31283123
let _icx = push_ctxt("text");
31293124
trans_mod(ccx, &crate.module);

branches/dist-snap/src/librustc/middle/trans/common.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ pub fn type_is_immediate(ccx: &mut CrateContext, ty: ty::t) -> bool {
7070
return true;
7171
}
7272
match ty::get(ty).sty {
73-
// FIXME: #9651: small `ty_struct` should also be immediate
74-
ty::ty_struct(def_id, ref substs) => {
75-
ty::struct_fields(tcx, def_id, substs).is_empty()
76-
}
77-
ty::ty_enum(*) | ty::ty_tup(*) => {
73+
ty::ty_struct(*) | ty::ty_enum(*) | ty::ty_tup(*) => {
7874
let llty = sizing_type_of(ccx, ty);
7975
llsize_of_alloc(ccx, llty) <= llsize_of_alloc(ccx, ccx.int_type)
8076
}

branches/dist-snap/src/librustc/middle/trans/debuginfo.rs

Lines changed: 94 additions & 210 deletions
Large diffs are not rendered by default.

branches/dist-snap/src/libstd/libc.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,12 +2708,9 @@ pub mod funcs {
27082708
pub fn setbuf(stream: *FILE, buf: *c_char);
27092709
// Omitted: printf and scanf variants.
27102710
pub fn fgetc(stream: *FILE) -> c_int;
2711-
#[fast_ffi]
27122711
pub fn fgets(buf: *mut c_char, n: c_int, stream: *FILE)
27132712
-> *c_char;
2714-
#[fast_ffi]
27152713
pub fn fputc(c: c_int, stream: *FILE) -> c_int;
2716-
#[fast_ffi]
27172714
pub fn fputs(s: *c_char, stream: *FILE) -> *c_char;
27182715
// Omitted: getc, getchar (might be macros).
27192716

@@ -2723,13 +2720,11 @@ pub mod funcs {
27232720
// Omitted: putc, putchar (might be macros).
27242721
pub fn puts(s: *c_char) -> c_int;
27252722
pub fn ungetc(c: c_int, stream: *FILE) -> c_int;
2726-
#[fast_ffi]
27272723
pub fn fread(ptr: *mut c_void,
27282724
size: size_t,
27292725
nobj: size_t,
27302726
stream: *FILE)
27312727
-> size_t;
2732-
#[fast_ffi]
27332728
pub fn fwrite(ptr: *c_void,
27342729
size: size_t,
27352730
nobj: size_t,
@@ -2766,13 +2761,9 @@ pub mod funcs {
27662761
-> c_long;
27672762
pub fn strtoul(s: *c_char, endp: **c_char, base: c_int)
27682763
-> c_ulong;
2769-
#[fast_ffi]
27702764
pub fn calloc(nobj: size_t, size: size_t) -> *c_void;
2771-
#[fast_ffi]
27722765
pub fn malloc(size: size_t) -> *c_void;
2773-
#[fast_ffi]
27742766
pub fn realloc(p: *mut c_void, size: size_t) -> *mut c_void;
2775-
#[fast_ffi]
27762767
pub fn free(p: *c_void);
27772768
pub fn abort() -> !;
27782769
pub fn exit(status: c_int) -> !;
@@ -2865,7 +2856,6 @@ pub mod funcs {
28652856
#[link_name = "_pclose"]
28662857
pub fn pclose(stream: *FILE) -> c_int;
28672858
#[link_name = "_fdopen"]
2868-
#[fast_ffi]
28692859
pub fn fdopen(fd: c_int, mode: *c_char) -> *FILE;
28702860
#[link_name = "_fileno"]
28712861
pub fn fileno(stream: *FILE) -> c_int;
@@ -2933,15 +2923,13 @@ pub mod funcs {
29332923
pub fn pipe(fds: *mut c_int, psize: c_uint, textmode: c_int)
29342924
-> c_int;
29352925
#[link_name = "_read"]
2936-
#[fast_ffi]
29372926
pub fn read(fd: c_int, buf: *mut c_void, count: c_uint)
29382927
-> c_int;
29392928
#[link_name = "_rmdir"]
29402929
pub fn rmdir(path: *c_char) -> c_int;
29412930
#[link_name = "_unlink"]
29422931
pub fn unlink(c: *c_char) -> c_int;
29432932
#[link_name = "_write"]
2944-
#[fast_ffi]
29452933
pub fn write(fd: c_int, buf: *c_void, count: c_uint) -> c_int;
29462934
}
29472935
}
@@ -3095,7 +3083,6 @@ pub mod funcs {
30953083
pub fn pathconf(path: *c_char, name: c_int) -> c_long;
30963084
pub fn pause() -> c_int;
30973085
pub fn pipe(fds: *mut c_int) -> c_int;
3098-
#[fast_ffi]
30993086
pub fn read(fd: c_int, buf: *mut c_void, count: size_t)
31003087
-> ssize_t;
31013088
pub fn rmdir(path: *c_char) -> c_int;
@@ -3108,7 +3095,6 @@ pub mod funcs {
31083095
pub fn tcgetpgrp(fd: c_int) -> pid_t;
31093096
pub fn ttyname(fd: c_int) -> *c_char;
31103097
pub fn unlink(c: *c_char) -> c_int;
3111-
#[fast_ffi]
31123098
pub fn write(fd: c_int, buf: *c_void, count: size_t)
31133099
-> ssize_t;
31143100
}

branches/dist-snap/src/libstd/rt/local_heap.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,25 +107,18 @@ pub fn live_allocs() -> *raw::Box<()> {
107107
}
108108

109109
extern {
110-
#[fast_ffi]
111110
fn rust_new_memory_region(detailed_leaks: uintptr_t,
112111
poison_on_free: uintptr_t) -> *MemoryRegion;
113-
#[fast_ffi]
114112
fn rust_delete_memory_region(region: *MemoryRegion);
115-
#[fast_ffi]
116113
fn rust_new_boxed_region(region: *MemoryRegion,
117114
poison_on_free: uintptr_t) -> *BoxedRegion;
118-
#[fast_ffi]
119115
fn rust_delete_boxed_region(region: *BoxedRegion);
120-
#[fast_ffi]
121116
fn rust_boxed_region_malloc(region: *BoxedRegion,
122117
td: *TypeDesc,
123118
size: size_t) -> *OpaqueBox;
124-
#[fast_ffi]
125119
fn rust_boxed_region_realloc(region: *BoxedRegion,
126120
ptr: *OpaqueBox,
127121
size: size_t) -> *OpaqueBox;
128-
#[fast_ffi]
129122
fn rust_boxed_region_free(region: *BoxedRegion, box: *OpaqueBox);
130123
}
131124

branches/dist-snap/src/libstd/rt/thread_local_storage.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ type pthread_key_t = ::libc::c_uint;
5252

5353
#[cfg(unix)]
5454
extern {
55-
#[fast_ffi]
5655
fn pthread_key_create(key: *mut pthread_key_t, dtor: *u8) -> c_int;
57-
#[fast_ffi]
5856
fn pthread_setspecific(key: pthread_key_t, value: *mut c_void) -> c_int;
59-
#[fast_ffi]
6057
fn pthread_getspecific(key: pthread_key_t) -> *mut c_void;
6158
}
6259

branches/dist-snap/src/libstd/unstable/sync.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use vec;
2626
/// An atomically reference counted pointer.
2727
///
2828
/// Enforces no shared-memory safety.
29-
#[unsafe_no_drop_flag]
29+
//#[unsafe_no_drop_flag] FIXME: #9758
3030
pub struct UnsafeArc<T> {
3131
data: *mut ArcData<T>,
3232
}
@@ -427,6 +427,8 @@ mod tests {
427427
use util;
428428
use sys::size_of;
429429

430+
//#[unsafe_no_drop_flag] FIXME: #9758
431+
#[ignore]
430432
#[test]
431433
fn test_size() {
432434
assert_eq!(size_of::<UnsafeArc<[int, ..10]>>(), size_of::<*[int, ..10]>());

branches/dist-snap/src/rustllvm/RustWrapper.cpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,14 +548,21 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateStructType(
548548
LLVMValueRef DerivedFrom,
549549
LLVMValueRef Elements,
550550
unsigned RunTimeLang,
551-
LLVMValueRef VTableHolder) {
551+
LLVMValueRef VTableHolder,
552+
const char *UniqueId) {
552553
return wrap(Builder->createStructType(
553-
unwrapDI<DIDescriptor>(Scope), Name,
554-
unwrapDI<DIFile>(File), LineNumber,
555-
SizeInBits, AlignInBits, Flags,
554+
unwrapDI<DIDescriptor>(Scope),
555+
Name,
556+
unwrapDI<DIFile>(File),
557+
LineNumber,
558+
SizeInBits,
559+
AlignInBits,
560+
Flags,
556561
unwrapDI<DIType>(DerivedFrom),
557-
unwrapDI<DIArray>(Elements), RunTimeLang,
558-
unwrapDI<MDNode*>(VTableHolder)));
562+
unwrapDI<DIArray>(Elements),
563+
RunTimeLang,
564+
unwrapDI<MDNode*>(VTableHolder),
565+
UniqueId));
559566
}
560567

561568
extern "C" LLVMValueRef LLVMDIBuilderCreateMemberType(

branches/dist-snap/src/test/bench/shootout-pidigits.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,22 @@ impl mpz_t {
2424

2525
#[link_args="-lgmp"]
2626
extern {
27-
#[fast_ffi]
2827
#[link_name="__gmpz_add"]
2928
fn mpz_add(x: *mpz_t, y: *mpz_t, z: *mpz_t);
30-
#[fast_ffi]
3129
#[link_name="__gmpz_cmp"]
3230
fn mpz_cmp(x: *mpz_t, y: *mpz_t) -> c_int;
33-
#[fast_ffi]
3431
#[link_name="__gmpz_fdiv_qr"]
3532
fn mpz_fdiv_qr(a: *mpz_t, b: *mpz_t, c: *mpz_t, d: *mpz_t);
36-
#[fast_ffi]
3733
#[link_name="__gmpz_get_ui"]
3834
fn mpz_get_ui(x: *mpz_t) -> c_uint;
39-
#[fast_ffi]
4035
#[link_name="__gmpz_init"]
4136
fn mpz_init(x: *mpz_t);
42-
#[fast_ffi]
4337
#[link_name="__gmpz_init_set_ui"]
4438
fn mpz_init_set_ui(x: *mpz_t, y: c_uint);
45-
#[fast_ffi]
4639
#[link_name="__gmpz_mul_2exp"]
4740
fn mpz_mul_2exp(x: *mpz_t, y: *mpz_t, z: c_uint);
48-
#[fast_ffi]
4941
#[link_name="__gmpz_mul_ui"]
5042
fn mpz_mul_ui(x: *mpz_t, y: *mpz_t, z: c_uint);
51-
#[fast_ffi]
5243
#[link_name="__gmpz_submul_ui"]
5344
fn mpz_submul_ui(x: *mpz_t, y: *mpz_t, z: c_uint);
5445
}

0 commit comments

Comments
 (0)