Skip to content

Commit 0e15535

Browse files
committed
---
yaml --- r: 166488 b: refs/heads/snap-stage3 c: 58d808f h: refs/heads/master v: v3
1 parent 4ca4492 commit 0e15535

File tree

18 files changed

+216
-663
lines changed

18 files changed

+216
-663
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 18842f89f084c52588fe7cffe07f87bf6e90796a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c43efee6def9a4a4e943feef0236d3e17b3f581d
4+
refs/heads/snap-stage3: 58d808f9889882121475457e30f127db4b09a09b
55
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/mk/cfg/x86_64-unknown-dragonfly.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ CFG_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).so
77
CFG_STATIC_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).a
88
CFG_LIB_GLOB_x86_64-unknown-dragonfly=lib$(1)-*.so
99
CFG_LIB_DSYM_GLOB_x86_64-unknown-dragonfly=$(1)-*.dylib.dSYM
10-
CFG_JEMALLOC_CFLAGS_x86_64-unknown-dragonfly := -m64 -I/usr/include -I/usr/local/include $(CFLAGS)
11-
CFG_GCCISH_CFLAGS_x86_64-unknown-dragonfly := -Wall -Werror -g -fPIC -m64 -I/usr/include -I/usr/local/include $(CFLAGS)
12-
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-dragonfly := -shared -fPIC -g -pthread -lrt -m64
10+
CFG_JEMALLOC_CFLAGS_x86_64-unknown-dragonfly := -I/usr/include -I/usr/local/include $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_x86_64-unknown-dragonfly := -Wall -Werror -g -fPIC -I/usr/include -I/usr/local/include $(CFLAGS)
12+
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-dragonfly := -shared -fPIC -g -pthread -lrt
1313
CFG_GCCISH_DEF_FLAG_x86_64-unknown-dragonfly := -Wl,--export-dynamic,--dynamic-list=
1414
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-whole-archive
1515
CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-no-whole-archive

branches/snap-stage3/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ $$(JEMALLOC_LOCAL_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
180180
AR="$$(AR_$(1))" \
181181
RANLIB="$$(AR_$(1)) s" \
182182
CPPFLAGS="-I $(S)src/rt/" \
183-
EXTRA_CFLAGS="-g1"
183+
EXTRA_CFLAGS="-g1 -ffunction-sections -fdata-sections"
184184
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
185185

186186
ifeq ($$(CFG_DISABLE_JEMALLOC),)

branches/snap-stage3/src/etc/snapshot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def scrub(b):
3737
"macos": ["bin/rustc"],
3838
"winnt": ["bin/rustc.exe"],
3939
"freebsd": ["bin/rustc"],
40-
"dragonfly": ["bin/rustc"],
4140
}
4241

4342
winnt_runtime_deps_32 = ["libgcc_s_dw2-1.dll",
@@ -87,8 +86,6 @@ def get_kernel(triple):
8786
return "macos"
8887
if os_name == "freebsd":
8988
return "freebsd"
90-
if os_name == "dragonfly":
91-
return "dragonfly"
9289
return "linux"
9390

9491
def get_cpu(triple):

branches/snap-stage3/src/liblibc/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,6 @@ pub mod types {
10951095
pub type sighandler_t = size_t;
10961096
}
10971097
pub mod bsd44 {
1098-
use types::common::c95::{c_void};
10991098
use types::os::arch::c95::{c_char, c_int, c_uint};
11001099

11011100
pub type socklen_t = u32;
@@ -1168,17 +1167,6 @@ pub mod types {
11681167
pub sun_family: sa_family_t,
11691168
pub sun_path: [c_char, ..104]
11701169
}
1171-
#[repr(C)]
1172-
#[deriving(Copy)] pub struct ifaddrs {
1173-
pub ifa_next: *mut ifaddrs,
1174-
pub ifa_name: *mut c_char,
1175-
pub ifa_flags: c_uint,
1176-
pub ifa_addr: *mut sockaddr,
1177-
pub ifa_netmask: *mut sockaddr,
1178-
pub ifa_dstaddr: *mut sockaddr,
1179-
pub ifa_data: *mut c_void
1180-
}
1181-
11821170
}
11831171
}
11841172

branches/snap-stage3/src/librustc_back/rpath.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,22 @@ mod test {
215215
}
216216

217217
#[test]
218-
#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
218+
#[cfg(target_os = "freebsd")]
219+
fn test_rpath_relative() {
220+
let config = &mut RPathConfig {
221+
used_crates: Vec::new(),
222+
has_rpath: true,
223+
is_like_osx: false,
224+
out_filename: Path::new("bin/rustc"),
225+
get_install_prefix_lib_path: || panic!(),
226+
realpath: |p| Ok(p.clone())
227+
};
228+
let res = get_rpath_relative_to_output(config, &Path::new("lib/libstd.so"));
229+
assert_eq!(res, "$ORIGIN/../lib");
230+
}
231+
232+
#[test]
233+
#[cfg(target_os = "dragonfly")]
219234
fn test_rpath_relative() {
220235
let config = &mut RPathConfig {
221236
used_crates: Vec::new(),

branches/snap-stage3/src/librustc_back/target/dragonfly_base.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@ pub fn opts() -> TargetOptions {
1717
dynamic_linking: true,
1818
executables: true,
1919
morestack: true,
20-
linker_is_gnu: true,
2120
has_rpath: true,
2221
pre_link_args: vec!(
2322
"-L/usr/local/lib".to_string(),
24-
"-L/usr/lib/gcc47".to_string(),
25-
// GNU-style linkers will use this to omit linking to libraries
26-
// which don't actually fulfill any relocations, but only for
27-
// libraries which follow this flag. Thus, use it before
28-
// specifying libraries to link to.
29-
"-Wl,--as-needed".to_string(),
23+
"-L/usr/local/lib/gcc47".to_string(),
24+
"-L/usr/local/lib/gcc44".to_string(),
3025
),
31-
position_independent_executables: true,
26+
3227
.. Default::default()
3328
}
3429
}

branches/snap-stage3/src/librustc_back/target/x86_64_unknown_dragonfly.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@
1111
use target::Target;
1212

1313
pub fn target() -> Target {
14-
let mut base = super::dragonfly_base::opts();
15-
base.pre_link_args.push("-m64".to_string());
16-
1714
Target {
18-
data_layout: "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-\
19-
f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-\
20-
s0:64:64-f80:128:128-n8:16:32:64-S128".to_string(),
15+
data_layout: "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32".to_string(),
2116
llvm_target: "x86_64-unknown-dragonfly".to_string(),
2217
target_endian: "little".to_string(),
23-
target_word_size: "64".to_string(),
18+
target_word_size: "32".to_string(),
2419
arch: "x86_64".to_string(),
2520
target_os: "dragonfly".to_string(),
26-
options: base,
21+
options: super::dragonfly_base::opts()
2722
}
2823
}

branches/snap-stage3/src/librustc_trans/trans/_match.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,8 +1554,7 @@ pub fn store_for_loop_binding<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
15541554
-> Block<'blk, 'tcx> {
15551555
let _icx = push_ctxt("match::store_for_loop_binding");
15561556

1557-
if simple_identifier(&*pat).is_some() &&
1558-
bcx.sess().opts.debuginfo != FullDebugInfo {
1557+
if simple_identifier(&*pat).is_some() {
15591558
// Generate nicer LLVM for the common case of a `for` loop pattern
15601559
// like `for x in blahblah { ... }`.
15611560
let binding_type = node_id_type(bcx, pat.id);

branches/snap-stage3/src/librustc_trans/trans/controlflow.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ pub fn trans_for<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
286286
debug!("iterator type is {}, datum type is {}",
287287
ppaux::ty_to_string(bcx.tcx(), iterator_type),
288288
ppaux::ty_to_string(bcx.tcx(), iterator_datum.ty));
289-
290289
let lliterator = load_ty(bcx, iterator_datum.val, iterator_datum.ty);
291290

292291
// Create our basic blocks and set up our loop cleanups.
@@ -366,8 +365,6 @@ pub fn trans_for<'blk, 'tcx>(mut bcx: Block<'blk, 'tcx>,
366365
llpayload,
367366
binding_cleanup_scope_id);
368367

369-
debuginfo::create_for_loop_var_metadata(body_bcx_in, pat);
370-
371368
// Codegen the body.
372369
body_bcx_out = trans_block(body_bcx_out, body, expr::Ignore);
373370
body_bcx_out =

0 commit comments

Comments
 (0)